Re: Function instr
- From: fredg <fgutkind@xxxxxxxxxxxxxxx>
- Date: Thu, 9 Apr 2009 21:15:56 -0700
On Thu, 9 Apr 2009 20:34:04 -0700, AJOLSON wrote:
What would the code be to find the next character in a string
I have so far
Strtemp = instr(strin," ")
I just donʼt know what to put between the " " to get the count to the next
character. No matter what the next character is.
Any help would be great.
Thanks
Your example is not very illuminating.
1) InStr() returns a Number value, not a string value, so StrTemp
should be a number variable, not a string variable.
2) What do you mean by 'find the next character' in a string?
What do you mean by this " No matter what the next character is"?
How can you search for a character if you do not know what it is?
To use InStr()....
InStr("YourString","r") = 4
if the count starts at the before the first "r" of the string.
InStr("YourStrings" = 7
if the count starts after the first "r".
If you meant something else, please re-think your question and post
back.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
- References:
- Function instr
- From: AJOLSON
- Function instr
- Prev by Date: Re: Function instr
- Next by Date: RE: Function instr
- Previous by thread: Re: Function instr
- Next by thread: RE: Function instr
- Index(es):
Relevant Pages
|