Legato Samples
A number of samples have been created using Legato and made available to aid developers in understanding how the script’s functions operate. Some files are zipped and must be decompressed using a suitable program. Certain scripts, such as hooks, may need to be moved into the “Scripts” folder in the application’s installation directory in order to run the script via a ribbon command within your GoFiler application. In order to test such files, the underlying application will require a restart to enable the registration of the hook to the ribbon.
Sample files may be available as a Legato Script (*.ls or LS), a resource compiler (*.rc or RC), a menu script (*.ms or MS), or a compressed file (*.zip or ZIP) if more than one file is necessary for the operation of the sample script. Note that some browsers may require that you right-click and Save As or Save Target As to download the file. Otherwise the content will open in the browser window.
General Legato functions
Fahrenheit to Celsius Table (float)
Create Simple Fahrenheit to Celsius Table using floating point logic.
Revised: 12/16/2014
Fahrenheit to Celsius Table (int)
Create Simple Fahrenheit to Celsius Table using integer logic.
Revised: 12/16/2014
Legato Data functions
Convert EDGAR Company IDX to CSV
A script demonstrates CSV functions and the FormattedTextToArray function.
Revised: 12/16/2014
Load and Save CSV as a Table
A small program that demonstrates the use of CSVReadTable and CSVWriteTable functions by loading statistics from a file, makes a minor formatting change and then writes the data to a new file.
Revised: 12/21/2014
Legato Dialog functions
Combo Box Controls A (Simple)
Example of coding combo box style controls exhibiting various combo box features.
Revised: 12/16/2014
Combo Box Controls B (Drop Style)
Example of coding combo box style controls exhibiting various combo box features.
Revised: 12/16/2014
List Box Controls
Example of coding list box controls exhibiting various features.
Revised: 12/16/2014
Property Sheet Dialog
Example of a multiple tab dialog box.
Revised: 12/16/2014
Simple Dialog
Example dialog with inline resource using a text "edit" control.
Revised: 12/16/2014
Additional samples are available with step-through instructions on the Legato Developer’s Corner of our blog. Each Friday, we explore new functions and create scripts to accomplish both simple and complex tasks.