Skip to content

Commit

Permalink
Merge pull request #119 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
Update main branch
  • Loading branch information
stevekogo authored Aug 15, 2016
2 parents d03f125 + 5c8be5c commit a36cf52
Show file tree
Hide file tree
Showing 16 changed files with 1,039 additions and 950 deletions.
5 changes: 3 additions & 2 deletions instat/clsGridLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ Public Class clsGridLink
frmMain.clsRLink.RunInternalScript(clsSetDataFramesChanged.ToScript())
End If
clsVariablesMetadataChanged.AddParameter("data_name", Chr(34) & strDataName & Chr(34))
If (bGrdVariablesMetadataExists AndAlso frmMain.clsRLink.RunInternalScriptGetValue(clsVariablesMetadataChanged.ToScript()).AsLogical(0)) Then
If (bGrdVariablesMetadataExists AndAlso frmMain.clsRLink.RunInternalScriptGetValue(clsVariablesMetadataChanged.ToScript()).AsLogical(0)) Then
clsGetVariablesMetadata.AddParameter("data_name", Chr(34) & strDataName & Chr(34))
dfTemp = frmMain.clsRLink.RunInternalScriptGetValue(clsGetVariablesMetadata.ToScript()).AsCharacterMatrix()
FillSheet(dfTemp, strDataName, grdVariablesMetadata)
clsSetVariablesMetadataChanged.AddParameter("data_name", Chr(34) & strDataName & Chr(34))
Expand Down Expand Up @@ -166,7 +167,7 @@ Public Class clsGridLink
End If

If bGrdMetadataExists And (bGrdMetadataChanged Or bRMetadataChanged) Then
clsGetCombinedMetadata.AddParameter("convert_to_character", "True")
clsGetCombinedMetadata.AddParameter("convert_to_character", "TRUE")
dfTemp = frmMain.clsRLink.RunInternalScriptGetValue(clsGetCombinedMetadata.ToScript()).AsCharacterMatrix()
FillSheet(dfTemp, "metadata", grdMetadata)
clsSetMetadataChanged.AddParameter("new_val", "TRUE")
Expand Down
2 changes: 2 additions & 0 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ Public Class RLink
'TClears selection
box.SelectionLength = 0
' clear
box.SelectionStart = box.Text.Length
box.ScrollToCaret()
End Sub

Public Function RunInternalScriptGetValue(strScript As String, Optional strVariableName As String = ".temp_value", Optional bSilent As Boolean = False) As SymbolicExpression
Expand Down
80 changes: 48 additions & 32 deletions instat/dlgDescriptiveStatistics.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a36cf52

Please sign in to comment.