|
-
Mar 23rd, 2000, 06:08 AM
#1
Thread Starter
Hyperactive Member
I need help with determing the content of a string, I need to know if it contains text or numbers. I know that there is probably some simple way to do this but my VB is a bit rusty.
-
Mar 23rd, 2000, 06:50 AM
#2
Let's assume that you have a TextBox. To see if it holds number, you can use IsNumeric function.
Code:
If IsNumeric(Text1) Then
'It has numbers
Else
'It has string
End If
-
Mar 23rd, 2000, 06:52 AM
#3
Thread Starter
Hyperactive Member
Thanks
Thanks, that one's been bugging me for a while.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|