Description
This function will create a new variable containing passed data in binary format..
Syntax
retval = CreateBinaryData(varType, variable)
Parameters
The function has the following parameters:
Parameter | Description |
---|---|
varType | Type of variable you want to insert. This is the same as it is for GetValue, LockVariable. |
variable | An existing variable to create binary data from. |
See also
GetByteSize(), GetBinaryValue(), PutBinaryValue()
Example
declare function CreateBinaryData, GetByteSize existingVar = "data" existingSize = GetByteSize( existingVar ) newVar = CreateBinaryData(UBYTE, existingSize ) : existingVar