Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries styled text from drag as HTML.

Component Version macOS Windows Linux Server iOS SDK
DragDrop 9.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "DragDrop.GetHTML"; droparea { ; Encoding } )   More


Parameter Description Example Flags
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle
Encoding The text encoding for result.
Default is Windows ANSI.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
UTF8 Optional


Returns HTML text or error.


Queries styled text from drag as HTML.
HTML may be prefixed on Windows with metadata like the source URL. You may remove all text before <html> to get only the html.


Query HTML text:

Set Variable [ $text ; Value: MBS("DragDrop.GetHTML"; $dropview) ]
If [ Length($text) > 0 ]
    New Record/Request
    Set Field [ DragTest::Text ; $text ]
    Set Field [ DragTest::Description ; "Got HTML" ]
    Commit Records/Requests [ With dialog: Off ]
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 13th March 2019, last changed 18th December 2020

DragDrop.GetFilePathsToDrag - DragDrop.GetHeight