ListBox & TextFile Interactions with Categories
CAUTION. Please review the previous 3 LISTBOX EXAMPLES before you proceed. Otherwise, you might find this example a bit challenging.
From the Screen Shot above, you will notice that I have included CATEGORIES. Download and immediately modify this example to make your own mini Web Browser with BookMarker or Mini Email Address Book.
This small example is slightly more intelligent
I’m using a myriad of dialog box functions with if..else…loops. When you add a Category, it will search whether the Category already exist. If it does exist, it will ask you whether to overwrite or use a new Category name. You can also cancel if you decide not to save it. You can modify the Items in a Category and save them. You can have as many categories as you want. Each Category is 1 text file by itself. 10 categories means 10 text files.
Actions used : String, File, Input, Button, ListBox, Dialog, Text File, built-in AMS Constants, Functions
Please Login or Register to download this file.
In the next ListBox Example we will see how to SHIFT and SHARE items between 2 Text Files ( Categories ). With this function, we reduce the need to retype the same items. After 2 additional examples, we’re in good shape for more advanced features in this project.
IMPORTANT HIGHLIGHT
Upto this point, I have not used the Delimited Function to import and export items between ListBox and Text Files. To develop an advanced app where each item has many things hooked to it such as Birth Date, Address, Marital Status, Gender, Employee Number and many more, we need to use the Delimited Function plus Tables, SQLite or XML. But …… before we go that way, we MUST understand the fundamentals of how objects work at a basic level. So, do yourself a favour by running through the ListBox examples carefully. Cut & paste is bad for health.


Hi there, I am sorry I cannot log in more often. You’r samples are just the job to help me learn about the different processes in this program.
Thanks for your excellent work & Web Site.
Regards
sebalius