neoHOW4: Save ListBox Contents in a text file
Here, I described how you would load items into a ListBox (or ComboBox) object from an external file ... but what if your application required your user to add, change or modify the items in such a list ... and save the contents of the ListBox to an external file ... so it can be reloaded the next time this program is run ?
Let us assume that we are using the same ListBox named myCountries ... whose List Items: field is set to [myCountryList]
NeoBook provides the following set of commands to manage the items in a ListBox ...
... see the NeoBook Help file for details about syntax and operation of these commands
After you have designed your application to enable the user to change the contents of the ListBox, your final task is to make sure that the modified list is saved in the external file myCountryList.txt ... so it can be reloaded the next time you start your program ... hence, in your ShutDown section of your publication, code something like this ...
That is all.