I have a form with both "Edit" and "ListBoxes"
I can see the values for each type update in the watchlist as I step through my code.
Problem
Values from Edit Text properties are fetched properly using GetDialogProperty
but values from ListBoxe Text properties fetch the entire list of entries in the Listbox Text field.
[snippet=]This is the "Dialog" code for MSListbox2:
object MSListBox2: tMSListBox
Left = 216
Top = 243
Width = 121
Height = 70
Style = lbOwnerDrawFixed
ItemHeight = 20
Items.Strings = (
''
'GREEN_TAG'
'RED_TAG')
TabOrder = 12
Text = #13#10'GREEN_TAG'#13#10'RED_TAG'#13#10
SelectedIndex = -1
end
[/snippet]
I'm expecting to get either a blank field, or "GREEN_TAG", or "RED_TAG". What I get is "GREEN_TAGRED_TAG".
GetDialogProperty from ListBox or ComboBox
Moderators: Dorian (MJT support), JRL
Re: GetDialogProperty from ListBox or ComboBox
To acquire the selected list item,use:
Code: Select all
GetDialogProperty>Dialog1,MSListBox3,SelectedItems,vTag
Re: GetDialogProperty from ListBox or ComboBox
I love it when it works
So big picture is that you just have to find the right Property you want returned.
Edit Box: Text
ListBox: SelectedItems
Check Box: State
ComboBox:
So big picture is that you just have to find the right Property you want returned.
Edit Box: Text
ListBox: SelectedItems
Check Box: State
ComboBox:
Re: GetDialogProperty from ListBox or ComboBox
Edit Box: Text
ListBox: SelectedItems
Check Box: State
ComboBox: Text
If you allowed the sample scripts when you installed Macro Scheduler, look in the "General" folder for ComboBox_Sample.
ListBox: SelectedItems
Check Box: State
ComboBox: Text
If you allowed the sample scripts when you installed Macro Scheduler, look in the "General" folder for ComboBox_Sample.