Hi,
i've been trying to understand those above little string functions.
InStr Wiki description:
I have the following string:
myString = "CONNECT MYIP LOGIN PWD PORT"
now InStr returns the POSITION of the first character found in the string. in this example it would be returning 7 if I had:
I have the loc of my first space.. I can get CONNECT alone by using:
my Question is how do I get the rest seperately? how can I make inStr move to the next character(space) ?
anyone able to explain this to me?
Thanks
Qjahe
i've been trying to understand those above little string functions.
InStr Wiki description:
int InStr (coerce string S, coerce string t) [static]
If the string t is found inside S InStr returns the starting position with the first character of S being 0. If t is not found InStr returns -1.
I have the following string:
myString = "CONNECT MYIP LOGIN PWD PORT"
now InStr returns the POSITION of the first character found in the string. in this example it would be returning 7 if I had:
Code:
i = InStr(myString," ");
Code:
tmpString = Left(myString, i)
anyone able to explain this to me?
Thanks
Qjahe