Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DragDrop.GetHTML
Queries styled text from drag as HTML.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DragDrop | 9.2 | Yes | Yes | No | No | No |
Parameters
| 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. |
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.CreateWithControl
- DragDrop.GetLeft
- DragDrop.GetPath
- DragDrop.GetRTF
- DragDrop.GetSVG
- DragDrop.GetTag
- DragDrop.GetText
- DragDrop.GetTop
- DragDrop.GetURL
- DragDrop.SetTag
Example Databases
Blog Entries
Release notes
- Version 9.2
- Added DragDrop.GetHTML and DragDrop.GetRTF functions.
Created 13th March 2019, last changed 18th December 2020
DragDrop.GetFilePathsToDrag - DragDrop.GetHeight
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins