I have a string that looks something like this:
strVar = "string1;string2;string3;string4" but sometimes
strVar = "string1;string2"
The variable, strVar, can have various number of strings, but always delimited by semicolon. I need to create a loop to read each string1, string2... and so forth. How can I split strVar to read each item? I need to somehow find the number of delimited items there are in strVar (sometimes 4 items, sometimes 2 items). How to built a loop for this? Does it have to be put in an array and then read it out?
strVar = "string1;string2;string3;string4" but sometimes
strVar = "string1;string2"
The variable, strVar, can have various number of strings, but always delimited by semicolon. I need to create a loop to read each string1, string2... and so forth. How can I split strVar to read each item? I need to somehow find the number of delimited items there are in strVar (sometimes 4 items, sometimes 2 items). How to built a loop for this? Does it have to be put in an array and then read it out?