Hello I am new using script editor, and I think it is a very nice tool, but I have a problem, every time I save a close the file that has the script editor, it does not save my selection, it initialize with the first selection in my string content..., I think it is because the:
Rem Initialize Selection If desired
ListBox.CurSel = 0
Could you please tell me how to keep my selection once I exit the file???
Thank you!!! BTW I am using MathCAD 14
Rem Initialize List Box
ListBox.ResetContent()
Rem Add Strings here as needed
ListBox.AddString("24f-E (DF Only)")
ListBox.AddString("24f_Ex(DF Only)")
ListBox.AddString("20f-E")
ListBox.AddString("20f-Ex")
ListBox.AddString("18t-E (DF) / 14t-E (SPF)")
ListBox.AddString("16c-E (DF) / 12c-E (SPF)")
Rem Initialize Selection If desired
ListBox.CurSel = 0
Sub ListBoxEvent_Start()
End Sub
Sub ListBoxEvent_Exec(Inputs,Outputs)
Outputs(0).Value = ListBox.CurSel + 1
End Sub