Skip to content

Commit

Permalink
Merge pull request #3062 from Lunalo/unusedlevels
Browse files Browse the repository at this point in the history
Unusedlevels update
  • Loading branch information
dannyparsons authored May 12, 2017
2 parents ca1c65d + ac2f361 commit 695f156
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions instat/dlgUnusedLevels.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

Imports instat.Translations
Public Class dlgUnusedLevels
Public bFirstLoad As Boolean = True
Private bFirstLoad As Boolean = True
Private bReset As Boolean = True
Private clsUnusedLevels As New RFunction

Private Sub dlgUnusedLevels_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If bFirstLoad Then
Expand All @@ -31,25 +32,19 @@ Public Class dlgUnusedLevels
bReset = False
autoTranslate(Me)
End Sub
Private Sub ReopenDialog()

End Sub
Private Sub SetDefaults()
Dim clsDefaultFunction As New RFunction

clsUnusedLevels = New RFunction
ucrSelectorFactorColumn.Reset()

' Set default RFunction as the base function
clsDefaultFunction.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$drop_unused_factor_levels")
ucrBase.clsRsyntax.SetBaseRFunction(clsDefaultFunction.Clone())

clsUnusedLevels.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$drop_unused_factor_levels")
ucrBase.clsRsyntax.SetBaseRFunction(clsUnusedLevels)
End Sub

Private Sub SetRCodeforControls(bReset As Boolean)
SetRCode(Me, ucrBase.clsRsyntax.clsBaseFunction, bReset)
End Sub


Private Sub InitialiseDialog()
ucrBase.iHelpTopicID = 40

Expand All @@ -58,6 +53,7 @@ Public Class dlgUnusedLevels
ucrReceiverFactorColumn.SetMeAsReceiver()
ucrReceiverFactorColumn.SetIncludedDataTypes({"factor"})
ucrRemoveUnusedFactorLevels.SetReceiver(ucrReceiverFactorColumn)

ucrReceiverFactorColumn.SetParameter(New RParameter("col_name", 1))
ucrReceiverFactorColumn.SetParameterIsString()

Expand Down

0 comments on commit 695f156

Please sign in to comment.