Working With Multi-value Settings

A single setting may contain several members, like in an array. Stg_sg(), as well as stg_get() and stg_set() require that you specify the setting member you want to read or write. Setting members are counted starting from 0. Get_stg_num_members() will tell you how many members each setting has.

Here is a modified example from the previous topic, it goes through every member of every setting:

** Tibbo Basic **

dim s as string
dim f,f2,num as byte
dim result as en_stg_status_codes

for f=0 to stg_get_num_settings()-1
 for f2=0 to num-1
 next f2        
next f