ListBox & TextFile Interactions – Validation
I’m back after a very busy week up North.
Let’s embed Validation function into our mini Email Address Book project. Changes must be done to the flow and therefore the scripts. But it is not that difficult to do if you understand the previous 2 samples.
Once the changes were made, I can now :
1. Validate Name entry
2. Validate Email entry
3. Validate Group Name entry
Each validation uses its own PATTERN. You can set this pattern by looking at the Globals Pane. This one is real easy to do.
I’ve made quite a few changes to our project. I’ve optimized the scripts to run faster. So you can find more functions in the Globals and less scripts in objects. I’m using a TEMP TABLE that collects data from ListBoxes and then WRITE the TextFiles from the TEMP Table. This way, I can add more features to the project ( and preparing it for SQLite Plugin as well.).
If you take a look at the Screen Shot above and below, the project pops up a DialogEx for New Group Entries. This entry is also validated according to a set of PATTERNS. Once validated, I’ve also inserted the Good Old Dialog to WARN USERS about the implication of their next course of actions.
Once the New Group has been named, the DialogEx is closed and brings users to the front-end. Their latest Group will be auto-selected. This is easy to do. Look under the hood as proof.
Also, I’ve added a function to change the name of the GROUP as shown in the Screen Shot below. In fact, what we’re doing is changing the name of the Text Files.
Please Login or Register to download this file.
Please leave a comment.







Very creative, very grateful to