NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



Convert

Convert a SIML variable to a different type

Convert MyVariable To (TYPE) where type is one of "Integer", "Number", "String", "Money". Strings converted to numbers that are not parseable will be set to 0. Convert returns the converted variable, and does not modify it's argument.

Note: Conversion from the 'money' type is only available in SIML version 4.6 or later

Sample Source

iTemp := 1

strTemp := Convert iTemp To String
strMoney := Convert iTemp To Money
fTemp := Convert strMoney To Number
iTemp := Convert fTemp To Integer

Related Function(s):
   AsciiChar; AsciiValue; FormatNumber;

Minimum version: 1.0