Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DragDrop.GetHTML
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
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
droparea | The reference ID for this 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 |
Result
Returns HTML text or error.
Description
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.
Examples
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
- DragDrop.GetLeft
- DragDrop.GetPath
- DragDrop.GetRTF
- DragDrop.GetSVG
- DragDrop.GetTag
- DragDrop.GetText
- DragDrop.GetTop
- DragDrop.GetURL
- DragDrop.SetTag
Release notes
- Version 9.2
- Added DragDrop.GetHTML and DragDrop.GetRTF functions.
Example Databases
Blog Entries
This function checks for a license.
Created 13th March 2019, last changed 18th December 2020
