VALUE keyword
Set or get a value to an object. This value is not visible (hidden) and is useful to differentiate objects with a value.
Syntax
VALUE object, string
VALUE(object)
Parameters
- object: the object to assign a value (required)
- string: the string value to store (required)
Example
VALUE myImage, "bird" 'Set a value
IF VALUE(myImage) = "bird" THEN 'Verify the value
myString = VALUE(myImage) 'Assign the value to a string
VALUE _OBJECT, "my value is " + STR(2) 'Can be also used on special keyword _OBJECT
Go back to list of Keywords.