As with all questions I ask at the moment, please note I'm using Attachmate Extra! basic, which is a cut down version of MS VB. I don't know how good it's array support is, if at all. PLEASE feel free to post VB solutions, and I will try an adapt them, which I'm often able to do. Can only give points to the answer than works for me though, even if your answer may be correct for Microsoft VB. ***As far as I know, Attachmate Basic does not have the split() function! So if your solution uses that, you'll need to find a way around it. It does have len(), mid(), instr() and most other VB functions though.***
Right, here's some sample data:
blah blah test
I need firstly to get all data between the 2 [names] tags into a variable, lets call it "names" (the data above and below the names tags changes daily but is unimportant, and the names data also changes regularly, but the tags stay the same).
I then need to sort all data in the names variable into alphabetical order, ignoring upper or lower case, but final data must be in it's original case. Presumably each name can be seperated by the newline character? I already have newline defined as:
NL$ = Chr$(13) + Chr$(10)
Full points to the expert who provides a working solution, thanks!