Skip to main content

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 MyVal := TRANSFER(MyInt,STRING1); //MyVal is "A" (ASCII 65)
  
INTEGER1 MyVal2 := (INTEGER)MyVal; //MyVal2 is 0 (zero) because
          "A" is not a numeric character

See Also: Type Casting