SetPropertyD() Function
- Last UpdatedJul 25, 2024
- 1 minute read
Sets a discrete property in a wizard and returns a success code.
Syntax
result = SetPropertyD(controlname.property, Boolean)
Parameters
controlname
The name of a wizard that supports properties. A literal string value, message tagname, or string expression.
property
The discrete property of the wizard that is to be set. Together with controlname can be a literal string value, message tagname, or string expression.
Boolean
The Boolean value to pass to the wizard property. A literal Boolean value, discrete tagname or Boolean expression.
Return Value
An integer error code. For more information about the error codes, see Understand windows controls error messages.
Example(s)
With a checkbox wizard Checkbox1 and a discrete tagname dtag you can control the visibility of the checkbox with the following script function:
result=SetPropertyD("Checkbox1.visible",dtag);
If you set dtag to 0 and call the script function above, the checkbox wizard becomes invisible.