This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have array of 40 menu items:
General - For each integer CurrentItem from 1 to Max with increment 1, do (Actions) If ---some condition--- Then Variable - Set DialogitemsItems[CurrentItem] = ---function that setups dialog item--- Else Variable - Set DialogitemsItems[CurrentItem] = No Dialog Item
And now I wanna check if item is enabled, so:
General - If (Conditions) then do (Actions) else do (Actions) If DialogItems[I] != No Dialog Item Then General - If (Conditions) then do (Actions) else do (Actions) If (DialogItems[I] is enabled for 1) == false Then ---do something--- Else Else
And line (DialogItems[I] is enabled for 1) == false throwing error: Could not get 'property' from parameter in 'DialogControlGetPropertyAsBool' (value: 13) If I have only disabled items everything is ok, but if anyone is enabled error is thrown.
@ShadowDancer93: Go
The dialog item property values are not all set with a default value.
Several examples:
If you test a property defined as NULL value (caused by the instanciation), the function will throw an error.
You can solve this problem by force the system to set a value to non-used property values :
Create an Image dialog item (...) Set the Enabled status of (Last created dialog item) to TRUE
With the last couple of tests :
List was filled with buttons, so enabled is default NULL for button too. Thanks for help!
I have array of 40 menu items:
And now I wanna check if item is enabled, so:
And line (DialogItems[I] is enabled for 1) == false throwing error: Could not get 'property' from parameter in 'DialogControlGetPropertyAsBool' (value: 13) If I have only disabled items everything is ok, but if anyone is enabled error is thrown.
@ShadowDancer93: Go
The dialog item property values are not all set with a default value.
Several examples:
If you test a property defined as NULL value (caused by the instanciation), the function will throw an error.
You can solve this problem by force the system to set a value to non-used property values :
With the last couple of tests :
List was filled with buttons, so enabled is default NULL for button too. Thanks for help!