Compartir a través de


CREATEBINARY( ) Function

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)

Return Value

Character

Parameters

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

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

Reference

OLE Bound Control

OLE Container Control

ActiveX Controls Overview

Other Resources

Functions

Language Reference (Visual FoxPro)