Function Var2Bin() Foundation
Converts any value to a binary character string.
Var2Bin( <xValue> ) --> cBinaryString
The return value is a character string which contains the binary representation of the passed argument.
The function Var2Bin() converts values of all data types to a character string. This includes arrays and code blocks. The return value can be transformed back to the original value when the string is passed to the function Bin2Var(). This allows, for example, the exchange of data between different processes using inter-process communication (IPC). Using IPC, it is possible to send code blocks from work station A to B. As a result, one work station can delegate computing to other work stations (distributed applications).
Conversion of complex data types
If values of data type array, code block or object are passed to Var2Bin() and the returned string is converted back using Bin2Var(), a new reference is created with the same contents as the original value. For example, if two variables containing the same array reference are passed to Var2Bin(), the return values are identical. When the two binary strings are converted back to an array, two different array references are created but the arrays have the same contents.
Conversion of objects
In case of objects, the function Var2Bin() accepts only instances of a class, not the class object itself. It should also be noted that objects may have instance variables whose contents is not persistent (especially XbaseParts).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.