str2Int64 Function

Converts a string into an Int64.


int str2Int64(str text)

Parameter

Description

text

The string to convert.

The Int64 value of the string passed in.

static void str2Int64Example(Args _args)
{
    str myStr;
    str tooBig;
    Int64 myInt64;
    ;
    
    myStr = "1234567890";
    tooBig = int642str(int64Max()+1);
    
    myInt64 = str2Int64(mystr);
    print strfmt ("int64: %1",myInt64);
    
    myInt64 = str2Int64(tooBig);
    print strfmt ("Too big int64: %1",myInt64);
    
    pause;
}

Community Additions

ADD
Show: