Username
Password
Are you new? Sign up now
I’ve forgotten
Home
:.
Downloads
:.
Articles
:.
Projects
:.
Reviews
:.
Forums
:.
Arcade
:.
Klikcast
:.
GOTW
The Daily Click
::.
Forums
::.
Klik Coding Help
::.
See if a string has a numerical value
Post Reply
Post Oekaki
Posted By
Message
Aptennap
Registered
23/04/2004
Points
916
4th April, 2009 at 23:29:39 -
The title of the post is wrong
I just need a fuction that checks wether a string is a letter or not. For example:
input "3" output false
input "a" output true
input ";" output false
Something like that...
Edited by Aptennap
Oh sweet mary.
Spitznagl
Cabinetmaker
Registered
06/12/2008
Points
4260
5th April, 2009 at 05:54:23 -
When you check for the value of a non-numeric string, it returns zero.
So if this is false ...
+Val(String$("whatever")) <> 0
...It would mean that the string is a letter.
Only downside is that it would also return false for a "0"
Edited by Spitznagl
...
Aptennap
Registered
23/04/2004
Points
916
5th April, 2009 at 07:33:15 -
And ";" would also be false, which is something I don't want. Is there a character->ASCII extension availible?
Oh sweet mary.
Sketchy
Cornwall UK
Registered
06/11/2004
Points
1971
5th April, 2009 at 12:01:08 -
string parser 2 ...word
n/a
Aptennap
Registered
23/04/2004
Points
916
5th April, 2009 at 12:45:41 -
Thanks, got it working.
Oh sweet mary.
Post Reply
1
All
Advertisement
Worth A Click