Visual basic and string functions

Hardware, Software, Internet, etc.

Moderators: Big-O Ryan, Big-O Mark, Matt, jester22c

Post Reply
User avatar
Boss1315
Newbie
Newbie
Posts: 6
Joined: Wed Dec 18, 2002 6:15 pm
Location: PA
Contact:

Visual basic and string functions

Post by Boss1315 »

I need to find where a space character is, starting from the right of a string and finding the rightmost one. I've tried everything and i cant figure out a way to do it. Can anyone help?

Thanks
~ :P Why put off something until tomorrow,
When you can do it the day after? :P ~
http://e.1asphost.com/boss1315/?sn=bigosig

Make Money with paypal!
http://www.dollars-for-you.com/plan1/index.php?ref=8432
User avatar
Plasma2002b
Extreme Groupie
Extreme Groupie
Posts: 976
Joined: Thu Jul 18, 2002 11:36 pm
Location: Riverside, Ca
Contact:

Post by Plasma2002b »

InStr(String, " ")




will give the value of how many places over the white space is
Image

its teh infamous life of brian gaut to teh max0r!
User avatar
Boss1315
Newbie
Newbie
Posts: 6
Joined: Wed Dec 18, 2002 6:15 pm
Location: PA
Contact:

Post by Boss1315 »

no... i have a string with a name and address. Like: 1234 Main Street Pittsburgh 15222 PA and i need to look starting from the PA and go back and find the next space before it.
~ :P Why put off something until tomorrow,
When you can do it the day after? :P ~
http://e.1asphost.com/boss1315/?sn=bigosig

Make Money with paypal!
http://www.dollars-for-you.com/plan1/index.php?ref=8432
User avatar
Master Jedi
Guru
Guru
Posts: 1161
Joined: Sat Jun 15, 2002 10:34 pm
Contact:

Post by Master Jedi »

use:

InStrRev (reverse instring)
User avatar
Boss1315
Newbie
Newbie
Posts: 6
Joined: Wed Dec 18, 2002 6:15 pm
Location: PA
Contact:

Post by Boss1315 »

That worked perfectly. :D

thanks
~ :P Why put off something until tomorrow,
When you can do it the day after? :P ~
http://e.1asphost.com/boss1315/?sn=bigosig

Make Money with paypal!
http://www.dollars-for-you.com/plan1/index.php?ref=8432
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest