Salesforce

MStr (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

MStr (Magic xpa 4.x)

Converts a number to a Magic number with a specified length in bytes.

Syntax:

MStr(number,length)

Parameters:

number: A number to be converted.
length
: The length of the resulting alpha string in bytes.

Returns:

Alpha string containing a Magic number

Example:

MStr(123456,4) converts 123456 into a 4-byte alpha string.

Note:

This function is especially designed to store data in arrays. The maximum precision is identified with the field storage type 'Magic number'.

See also:

MVal

The Online and Rich Client Samples projects (program CV09 and RCV09)

Reference
Attachment 
Attachment