str2Int64 Function

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Converts a string into an Int64 value.

int str2Int64(str text)

Parameters

Parameter

Description

text

The string to convert.

Return Value

The Int64 value of the specified string.

Example

    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;
    }

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).