Support My Blog
Download Free Games

ListBox & TextFile Interactions – Validation


ESET Smart Security - Save 25%

Hi,

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.

Validate All Entries

Validate All Entries

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.).

Validate Entries

Validate Entries

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.

Good Old Dialog & DialogEx Working together

Good Old Dialog & DialogEx Working together

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.

Change Group Name

Change Group Name

Please Login or Register to download this file.

Please leave a comment.

  • Share/Save/Bookmark

1 comment to ListBox & TextFile Interactions – Validation

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>