Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS FNC UI Pack
How to launch the webbrowser with an URL or open a file with FNC
How to launch the webbrowser with an URL or open a file with FNC
Launching the webbrowser with an URL or opening a file in FNC is simple. Add the FMX.TMSFNCUtils / VCL.TMSFNCUtils / LCLTMSFNCUtils unit depending on your IDE and chosen framework.
To launch the webbrowser, use the following code:
TTMSFNCUtils.OpenURL(‘https://www.tmssoftware.com’);
To open a file, use the following code:
TTMSFNCUtils.OpenFile(‘MyFile.txt’);
The way the FNC opens a file differs from operating system to operating system. On desktop operating systems, the file is opened and shown in the default registered application. For mobile operating systems a popup menu is shown that asks in which application the file needs to be opened.