Support My Blog
Download Free Games

Load Combo Items from a Text File

image: DrawPlus X2 from Serif image: PhotoPlus X2 from Serif

Hi,

We have seen most methods to populate  Combo.  I would like to share another way, which is an important one.

In this example, we will import Combo items from a Text File. This file has comma separated values ( techies call em CSVs ). In our case, each line in the Text File will contain Text and Data separated by a comma.

To separate each line into Text and Data and insert them into the Combo, we will use a function called DelimitedStringFunction ( available in the AMS software Script Gallery Folder ). I placed this function in the Global Panel.

For this example, I use a Button to import data from the Text File. If you want to load items directly as your App starts, just Copy the scripts in the Button and Paste it in the Page OnShow.

Screen Shot : Load Combo Items from a Text File

Screen Shot : Load Combo Items from a Text File

Please Login or Register to download this file.

Please leave a comment about this example.


Graphics.com/Learning

  • Share/Save/Bookmark

1 comment to Load Combo Items from a Text File

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>