User Profile
Collapse
-
Aha. Thank you kindy, this works just as needed. :]... -
Thank you all for the quick responces,
I should have been more clear in my first post, but I'm actually putting the text into a string and then checking it, since the textbox is used for more than one thing.
I tried this in my project, and an empty new one to check the code and got this both times:
Run-time error '5':
Invalid procedure call or argument....Leave a comment:
-
Check a string for valid characters
Apologies for posting a question on my first post, anyhow, could someone suggest an idea to turn this into working VB6 code:
ValidChars = "0123456789 ABC"
If (TextBox1.Text only contains characters from ValidChars) then
' Do whatever '
Else
' Do something else '
EndIf
No activity results to display
Show More
Leave a comment: