Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / character position

Author
Message
aadvark
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location:
Posted: 24th Jan 2006 17:42

how can i find out the position of a particular character in a string.
ie string$="blah blah blah"
how would i find out the numerical position of the first space (pos 5)

cheers
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 26th Jan 2006 02:50
You can use a for/next loop to check each character with "mid$".




Login to post a reply

Server time is: 2024-09-24 15:30:14
Your offset time is: 2024-09-24 15:30:14