Love StrSplit. Saves me some lines of code and is far more elegant. Having trouble though with the dim statement in Globals. If I use Dim words(0) as string it is fine in a standalone test prog but if I include it in my big and near completed prog I get:
Error compiling program.
Error description: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Occured on line: 5
Dim words(0) as string
If I use just Dim words(0) without the 'as string' reference then it is OK.
Are there any issues if I omit the 'as string'?
Error compiling program.
Error description: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Occured on line: 5
Dim words(0) as string
If I use just Dim words(0) without the 'as string' reference then it is OK.
Are there any issues if I omit the 'as string'?