Skip to main content

TrFile_BringToFront (function reference)

By June 1, 2024June 4th, 2024Online Help, Troi File Plug-in
Troi File Plug-in > Functions reference > TrFile_BringToFront
Troi File Plug-in for FileMaker Pro

TrFile_BringToFront

Brings the FileMaker Pro application to the front

SyntaxFunction badge

TrFile_BringToFront

Parameters

none

Returned Result

Data type returned

Error code

Result

The returned result is an error code. An error always starts with 2 dollars, followed by the error code. You should always check for errors. Returned error codes can be:

0 no error
$$-4296 could not bring to front

Other errors may be returned.

Originated in

Troi File Plug-in 12.0

Compatibility

FileMaker Pro 17 to FileMaker Pro 21 (2024)

Considerations

If the FileMaker Pro application is behind other applications, this function will bring FileMaker Pro in front of the other applications.
You can use this function for example when a lengthy script is finished, or when you use the Drag and Drop functionality to drag from another application that is in front or when you drag from a Finder or Explorer window.
In the drag Triggerscript you can decide if this drag needs FileMaker to become the front application and if it does, you can call this function.

Example

Set Variable [ $ErrorCode ; TrFile_BringToFront ]

This will bring FileMaker Pro in front of other applications.

Used in example file

DragAndDrop.fmp12

Related functionsFunction badge

TrFile_DragAndDrop
TrFile_Launch

Related script stepsScript step badge

Add DragAndDrop Handler
Bring To Front

Related topics

Troi File Plug-in online help (overview)


Online Help Page for Troi File Plug-in for 17 to 2024 –> TrFile_BringToFront (filep4325) 2024-0604 19:20:47