TEXT property (Clipboard)
Description
Gets or sets the data on the clipboard in a textual format.
Property Value
The clipboard data represented as a text string.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get Only | No | No | No |
Remarks
When used with Get_Property the PS first looks to see if it can find a Unicode data string on the clipboard (CF_UNICODETEXT format), and return that. If this is not available it will look to return a CF_TEXT formatted string and return that instead.
When used with Set_Property the PS will place both CF_UNICODETEXT and CF_TEXT formatted data on the clipboard.
Example
// TEXT property example // // Copy the contents of an EditLine control onto the clipboard // and then examine the text. // Select all the text Call Set_Property( @Window : ".EDITLINE_1", "SELECTION", 1 : @fm : 0xFFFF ) // Copy it to the clipboard Call Exec_Method( @Window : ".EDITLINE_1", "COPY" ) // Now get the text ClipText = Get_Property( "CLIPBOARD", "TEXT" )
See Also
FORMATLIST property, GETDATA method, SETDATA method