Loop through text box array
Posted on 2006-05-12
I need to grab the values from several text boxes on several tabs (sstab).
I 'have' to grab them in order, at least a certain order...
They're laid out as such:
on each tab.
I'm writing these values to the registry, so A's value is going to be B, so I don't think a for/each would work here...
I 'thought' about adding a Tag to each "A" and/or each "B", but I'm wondering if there's a more effecient way.
For X = 0 To sstMain.Tabs - 1
'Saves the Tab's caption as the section, then I need to save each txtData(y) with a value of txtData(y+1) (these are created in sequence,
'starting at array 2, so all 'even' txtboxes would be the Key, and all odd's (above 1), would be the value).
SaveSetting strAppName, "Settings\" & sstMain.TabCaption(X), txtData(y).Text, txtData(y+1).Text