« Back to Product

Documentation

SetValueString

 bool SetValueString (int $VariableID, string $Value) 

Parameters

VariableID

ID of the variable

Value

Text

Returns

If the function succeeds, it returns TRUE, otherwise FALSE.

Description

The function sets the value of the IP-Symcon variable with the ID VariableID to Value. The selected variable must have the type String. If the variable's type is not String, the function stops with an error. A conversion from Float, Integer, or Boolean (False/True) is done. For setting the variable type-unsafely you can use the function SetValue.

Example

SetValueString(47788, $current_project);
Any questions?