943,918 Members | Top Members by Rank

Ad:
Mar 3rd, 2009
0

How to test a string?

Expand Post »
How to test a string if it is separated with space or not?
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
nagatron is offline Offline
99 posts
since Aug 2008
Mar 3rd, 2009
1

Re: How to test a string?

vb Syntax (Toggle Plain Text)
  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
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 3rd, 2009
-1

Re: How to test a string?

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
Reputation Points: 22
Solved Threads: 5
Light Poster
javmedia is offline Offline
36 posts
since Mar 2009
Mar 3rd, 2009
0

Re: How to test a string?

Bah

Wish I would have caught that it was homework :/
Last edited by Comatose; Mar 3rd, 2009 at 2:42 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 3rd, 2009
0

Re: How to test a string?

Click to Expand / Collapse  Quote originally posted by Comatose ...
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.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
nagatron is offline Offline
99 posts
since Aug 2008
Mar 3rd, 2009
0

Re: How to test a string?

Click to Expand / Collapse  Quote originally posted by javmedia ...
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.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
nagatron is offline Offline
99 posts
since Aug 2008
Mar 3rd, 2009
0

Re: How to test a string?

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.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
nagatron is offline Offline
99 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How should i save requisition no in a MaterialRequisintion order table
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: excel and datagrid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC