For this week’s blog we are going to create a simple calculator using Legato. Legato offers a wide variety of math functions that we can use to program the calculator. Before we get started coding, let’s think about the parts of the script we will need. First there will need to be a user interface. In our case, a dialog works perfectly. Secondly, we need to have a way to store operands, and a floating point number is good choice here. If we use only an integer the user cannot do decimal math. Finally, we will need to have operation processing. For this we will use Legato’s math functions. To begin I am going to set up the basics of the dialog, and we can add the processing together.
Continue reading "LDC #85: Math Functions in Legato" »Friday, May 18. 2018
LDC #85: Math Functions in Legato
Friday, May 11. 2018
LDC #84: Dialog Boxes Part III — List Boxes
Friday, May 04. 2018
LDC #83: Validating With The XBRL Object Part 2
Friday, April 27. 2018
LDC #82: A Second Snap of the Clipboard
Friday, April 20. 2018
LDC #81: Automating Other Applications Through Legato
Friday, April 13. 2018
LDC #80: Dialog Boxes Part II — A Simple Dialog Box
Friday, April 06. 2018
LDC #79: Save, Load, and Edit Preferences Templates
Friday, March 30. 2018
LDC #78: A Snapshot of the Clipboard
Friday, March 23. 2018
LDC #77: Hash It Out
Friday, March 16. 2018
LDC #76: Introduction to Dialog Boxes
Friday, March 09. 2018
LDC #75: Automatic Creation of Previous Versions
Friday, March 02. 2018
LDC #74: Removing That Pesky S From HTTPS
Friday, February 23. 2018
LDC #73: Running in the Background Part 2 - Synchronizing Tasks
Friday, February 16. 2018
LDC #72: Get Crack'n - Working with URIs
Friday, February 09. 2018
LDC #71: Validating With The XBRL Object
Quicksearch
Categories
Calendar
![]() |
February '25 |
![]() |
||||
---|---|---|---|---|---|---|
Mo | Tu | We | Th | Fr | Sa | Su |
Sunday, February 23. 2025 | ||||||
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 |