Cast

Parent Previous Next

VisualSim                                                                                                                                    

Cast

 

Function & Argument Type(s)

 

Description

 

cast

(String token)

Convert the string type to appropriate token type.

LHS                 RHS

int                     string

long                  string (over 31 characters, or "l", "L" on end)

double              string

boolean            string

data structure  string (no data folder names)

array                string (no ":" format)

matrix              string (int, long, double)

Usage example: x = cast (“5.5”)

cast

(Token token1,

Token token2)

Convert the second token to the type of the first.

LHS           RHS

int               long

long             int

double         int, long

string          any

boolean       int (1,0), long(0L,1L), double (1.0 and 0.0)

Usage example: x = cast(double,1)

getAsciiValue

(String oneChar)

Return the ASCII value of a character.

getBinValue

(int i)

Return Binary value of an integer.

getBinValue

(int n, int len)

Return Binary value of an integer.

getBinValue

(String str, int len)

Return Binary value of a string.

Reference RegEx Constant Model:     

$VS\VS_AR\doc\Training_Material\General\RegEx\RegEx_Cast_Test.xml




 

 

Created with the Personal Edition of HelpNDoc: Generate Kindle eBooks with ease