method ExDataObject.GetData (Format as Integer)
Returns data from a DataObject object in the form of a variant.

TypeDescription
Format as Integer An exClipboardFormatEnum expression that defines the data's format
ReturnDescription
VariantA Variant value that contains the ExDataObject's data in the given format

Use GetData property to retrieve the clipboard's data that has been dragged to the control. It's possible for the GetData and SetData methods to use data formats other than exClipboardFormatEnum , including user-defined formats registered with Windows via the RegisterClipboardFormat() API function. The GetData method always returns data in a byte array when it is in a format that it is not recognized. Use the Files property to retrieves the filenames if the format of data is exCFFiles