ToVariant Method
Converts a script value to a Variant. This function is useful if you want to write common code for both desktop and mobile appliations using scripter. For desktop applications, this function makes no difference, since script values are variants. For mobile, script values are TValue records, thus this function converts it to a variant value.
Syntax
Unit: atScript
function ToVariant(const Value: Variant): Variant; inline;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Value | Variant |