TRANSFER

TRANSFER(value,type)

valueAn expression containing the bitmap to return.
typeThe value type to return.
Return:TRANSFER returns a single value.

The TRANSFER function returns the value in the requested type. This is not a type cast because the bit-pattern stays the same.

Example:

INTEGER1 MyInt := 65; //MyInt is an integer whose value is 65
STRING1 MyVal1 := TRANSFER(MyInt,STRING1); //MyVal is "A" (ASCII 65)
INTEGER1 MyVal2 := (INTEGER)MyVal1; //MyVal2 is 0 (zero) because
                                   // "A" is not a numeric character
OUTPUT(MyVal1); // returns A 
OUTPUT(MyVal2); // returns 0 (zero)

See Also: Type Casting