Hi everyone,
I'm a little confused about extracting a data value/variable from
an action that seems to offer the data value to other certain actions.
(Im working on a combobox project)
For example.
Dialog.Message (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
This will display, in a dialog the value I selected in the combobox. In this case an exe.
I tried to assign this total action as a variable ie:
result = (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
and I just get syntax errors.
Ideally I would like to run the exe without extracting the value, for example
File.Run (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
However this also does not work.. I feel Im missing a simple syntax format ?
Why does the Dialog.Message work, and not the File.Run ?
Any pointers much appreciated.
I'm a little confused about extracting a data value/variable from
an action that seems to offer the data value to other certain actions.
(Im working on a combobox project)
For example.
Dialog.Message (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
This will display, in a dialog the value I selected in the combobox. In this case an exe.
I tried to assign this total action as a variable ie:
result = (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
and I just get syntax errors.
Ideally I would like to run the exe without extracting the value, for example
File.Run (ComboBox.GetItemData(this, ComboBox.GetSelected(this)), "", SW_SHOWNORMAL);
However this also does not work.. I feel Im missing a simple syntax format ?
Why does the Dialog.Message work, and not the File.Run ?
Any pointers much appreciated.
Comment