Skip to content

Commit

Permalink
Code Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
derekagorhom committed Jun 22, 2023
1 parent 454b638 commit 3c1e8d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions instat/dlgEdit.Designer.vb

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

26 changes: 13 additions & 13 deletions instat/dlgEdit.vb
Expand Up @@ -75,8 +75,8 @@ Public Class dlgEdit
ucrDate.SetParameterIsRDate()


ucrInputogical.SetItems({"TRUE", "FALSE", "NA"})
ucrInputogical.bAllowNonConditionValues = True
ucrInputLogical.SetItems({"TRUE", "FALSE", "NA"})
ucrInputLogical.bAllowNonConditionValues = True
End Sub

Private Sub SetDefaults()
Expand All @@ -86,15 +86,15 @@ Public Class dlgEdit
bFirstLevelDefault = True
ucrDate.Format = DateTimePickerFormat.Custom
ucrDate.Format = "yyyy-MM-dd"
ucrInputogical.GetSetSelectedIndex = 0
ucrInputLogical.GetSetSelectedIndex = 0
ucrBase.cmdReset.Enabled = False

clsReplaceValue.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$replace_value_in_data")
clsReplaceValue.AddParameter("data_name", Chr(34) & ucrSelectValues.strCurrentDataFrame & Chr(34), iPosition:=0)
clsReplaceValue.AddParameter("col_name", Chr(34) & strSelectedColumn & Chr(34), iPosition:=1)
clsReplaceValue.AddParameter("rows", Chr(34) & strRowIndex & Chr(34), iPosition:=2)
ucrBase.clsRsyntax.SetBaseRFunction(clsReplaceValue)
VariableTypeProperties()
SetControlProperties()
End Sub

Private Sub SetRCodeForControls(bReset As Boolean)
Expand All @@ -117,12 +117,12 @@ Public Class dlgEdit
ucrRowNumber.SetName(strRowIndex)
ucrNewName.SetName(strRowText)
ucrInputRows.SetName(strRowText)
ucrInputogical.SetName(strRowText)
ucrInputLogical.SetName(strRowText)
bUseSelectedColumn = False
End Sub

Private Sub ucrCoreControls_ControlContentsChanged() Handles ucrNewName.ControlContentsChanged, ucrReceiverName.ControlContentsChanged, ucrRowNumber.ControlContentsChanged, ucrInputRows.ControlContentsChanged, ucrReceiverRow.ControlContentsChanged,
ucrDate.ControlContentsChanged, ucrInputogical.ControlContentsChanged
ucrDate.ControlContentsChanged, ucrInputLogical.ControlContentsChanged
TestOKEnabled()
End Sub

Expand Down Expand Up @@ -179,7 +179,7 @@ Public Class dlgEdit
End If
End If
End If
VariableTypeProperties()
SetControlProperties()
End Sub

Private Sub ucrNewName_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrNewName.ControlValueChanged
Expand Down Expand Up @@ -207,11 +207,11 @@ Public Class dlgEdit
End If
End Sub

Private Sub VariableTypeProperties()
Private Sub SetControlProperties()
ucrInputRows.Visible = False
ucrDate.Visible = False
ucrNewName.Visible = False
ucrInputogical.Visible = False
ucrInputLogical.Visible = False
If Not ucrReceiverName.IsEmpty() Then
Select Case ucrReceiverName.strCurrDataType.ToLower
Case "factor"
Expand All @@ -231,7 +231,7 @@ Public Class dlgEdit
ucrDate.DateValue = New Date(strDate(0), strDate(1), strDate(2))
End If
Case "logical"
ucrInputogical.Visible = True
ucrInputLogical.Visible = True
bInputRow = False
bInputLogical = True
bDate = False
Expand All @@ -252,14 +252,14 @@ Public Class dlgEdit
End If
End Sub

Private Sub ucrInputogical_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrInputogical.ControlValueChanged
Private Sub ucrInputogical_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrInputLogical.ControlValueChanged
If bInputLogical Then
Dim strValue As String = ucrInputogical.GetValue
Dim strValue As String = ucrInputLogical.GetValue
clsReplaceValue.AddParameter("new_value", strValue, iPosition:=3)
End If
End Sub

Private Sub ucrRowNumber_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrRowNumber.ControlValueChanged
VariableTypeProperties()
SetControlProperties()
End Sub
End Class

0 comments on commit 3c1e8d9

Please sign in to comment.