How to test a string?

Thread Solved

Join Date: Aug 2008
Posts: 77
Reputation: nagatron is an unknown quantity at this point 
Solved Threads: 0
nagatron nagatron is offline Offline
Junior Poster in Training

How to test a string?

 
0
  #1
Mar 3rd, 2009
How to test a string if it is separated with space or not?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 212
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How to test a string?

 
1
  #2
Mar 3rd, 2009
  1. dim x as string
  2. x = "hello world"
  3. if instr(1, x, " ") <> 0 then
  4. msgbox "yeah, space."
  5. else
  6. msgbox "no sir!"
  7. end if
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 36
Reputation: javmedia is an unknown quantity at this point 
Solved Threads: 5
javmedia javmedia is offline Offline
Light Poster

Re: How to test a string?

 
-1
  #3
Mar 3rd, 2009
Yup...
Nice and complete comatose.
I didn't want to do the guys homework so I replied with a ref to the function name only.

Not sure how you can report double posting since I'm new here but this is one is a repeat from nagatron.

see
http://www.daniweb.com/forums/thread179552.html
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 212
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How to test a string?

 
0
  #4
Mar 3rd, 2009
Bah

Wish I would have caught that it was homework :/
Last edited by Comatose; Mar 3rd, 2009 at 1:42 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: nagatron is an unknown quantity at this point 
Solved Threads: 0
nagatron nagatron is offline Offline
Junior Poster in Training

Re: How to test a string?

 
0
  #5
Mar 3rd, 2009
Originally Posted by Comatose View Post
Bah

Wish I would have caught that it was homework :/

This is not a homework or assignment. It is a thesis program. I am making a reservation system and I want my the username and password should be no space in between. I won't post here if it is just an assignment. I am making a big system, after I finished it I will share this here and on planetsourcecode.com so anyone can have a look for reference.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: nagatron is an unknown quantity at this point 
Solved Threads: 0
nagatron nagatron is offline Offline
Junior Poster in Training

Re: How to test a string?

 
0
  #6
Mar 3rd, 2009
Originally Posted by javmedia View Post
Yup...
Nice and complete comatose.
I didn't want to do the guys homework so I replied with a ref to the function name only.

Not sure how you can report double posting since I'm new here but this is one is a repeat from nagatron.

see
http://www.daniweb.com/forums/thread179552.html

I am not doing homework man, just see as soon as I finished the system. I will not ask for help here anymore.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: nagatron is an unknown quantity at this point 
Solved Threads: 0
nagatron nagatron is offline Offline
Junior Poster in Training

Re: How to test a string?

 
0
  #7
Mar 3rd, 2009
comatose, thank you for the information you gave me. I will include you as one of the contributor of the system. I will post it in there the zip file of the system as soon as I can. Thank you again. This thread is solved.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 601 | Replies: 6
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC