JavaScript Editor js editor     Web development 



Main Page

Converts character type data created in Visual FoxPro to a binary type character string you can pass to an ActiveX control or automation object.

CREATEBINARY(cExpression)

Parameters

cExpression


Specifies the character expression for which a binary type character string is returned.

Return Value

Character

Remarks

Visual FoxPro character strings can contain binary data. However, an ActiveX control or automation object character string (OLE VT_BSTR type data) cannot contain binary data. An ActiveX control or automation object passes binary data to applications such as Visual FoxPro as an array of VT_UI1 type data.

Visual FoxPro automatically converts binary data passed from an ActiveX control or automation object as an array of VT_UI1 type data to a Visual FoxPro character string. Visual FoxPro internally marks this character string as binary data passed from an ActiveX control or automation object. When the character string is passed back to an ActiveX control or automation object, Visual FoxPro automatically converts the character string to an array of VT_UI1 type data the ActiveX control or automation object expects.

Use CREATEBINARY(В ) to convert character type data created in Visual FoxPro to a binary type character string you can pass to an ActiveX control or automation object. The minimum number of characters to which CREATEBINARY(В ) can be abbreviated is 7.

For more information about ActiveX controls and automation objects, see Sharing Information and Adding OLE.

See Also



JavaScript Editor js editor     Web development 
toto togel