Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 3: For data in an OLE server – PB Docs 2019 – PowerBuilder Library

Syntax 3: For data in an OLE server – PB Docs 2019

Syntax 3: For data in an OLE server

Description

Gets data from the OLE server associated with an OLE control using
Uniform Data Transfer.

Applies to

OLE controls and OLE custom controls

Syntax

Argument

Description

olename

The name of the OLE or custom control containing the
object you want to populate with data

clipboardformat

The format for the data. You can specify a standard
format with a value of the ClipboardFormat enumerated
datatype. You can specify a nonstandard format as a
string.

Values for clipboardformat are:

ClipFormatBitmap!

ClipFormatDIB!

ClipFormatDIF!

ClipFormatEnhMetafile!

ClipFormatHdrop!

ClipFormatLocale!

ClipFormatMetafilePict!

ClipFormatOEMText!

ClipFormatPalette!

ClipFormatPenData!

ClipFormatRIFF!

ClipFormatSYLK!

ClipFormatText!

ClipFormatTIFF!

ClipFormatUnicodeText!

ClipFormatWave!

If clipboardformat is an empty string or a null value,
GetData uses the format ClipFormatText!

data

A string or blob variable that will contain the data
from the OLE server. If the data you want to get is not
appropriate for a string, you must use a blob variable.

Return value

Integer.

Returns 0 if it succeeds and -1 if an error occurs.

Usage

GetData will return an error if you specify a clipboard format
that the OLE server does not support. To find out what formats it
supports, see the documentation for the OLE server.

GetData operates via Uniform Data Transfer, a mechanism defined by
Microsoft for exchanging data with container applications. PowerBuilder
enables data transfer via a global handle. The OLE server must also
support data transfer via a global handle. If it does not, you cannot
transfer data to or from that server.

Examples

After the user has activated a Microsoft Word document and edited
its contents, this example gets the contents from the OLE control
ole_word6 and stores the contents in the string ls_oledata. The contents
of the string are then displayed in the MultiLineEdit mle_text:

One OLE control displays a Microsoft Word document containing a
table of data. This example gets the data in the report and assigns it
to a graph in a second OLE control. Microsoft Graph in the second
control interprets the first row in the table as headings, and
subsequent rows as categories or series, depending on the settings on
the Data menu:

See also

SetData


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x