
IsNumber
-
- User
- Posts: 12
- Joined: Tue Jul 12, 2005 6:55 pm
- Location: United Kingdom
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
True... I don't know where they took the idea from .. (stole it from who?I know and someone needs to tell the americans about that 'mm/dd/yyyy' thing for dates! it's just wrong! Wink

Well.. Colour < Color ..
Color is used even in spanish! so it wins. end of story

Salute the chavs for me (those bloody townies!).
Castel for the Brit - Castle for the Yankee



@british people
stop driving in the wrong way.
oh and btw...
for the most people it should be good enough.
c ya,
nco2k
stop driving in the wrong way.

oh and btw...
Code: Select all
Procedure IsNumeric(String.s)
If Str(Val(String)) <> "0"
Result = #True
Else
Result = #False
EndIf
ProcedureReturn Result
EndProcedure
Debug IsNumeric("99")
Debug IsNumeric("ABC")
Debug IsNumeric("AB99CD")

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
that last one wont catch 0's though.... maybe this?
Code: Select all
Procedure IsNumeric(String.s)
If String = Str(Val(string))
Result = #True
Else
Result = #False
EndIf
ProcedureReturn Result
EndProcedure
Debug IsNumeric("99")
Debug IsNumeric("ABC")
Debug IsNumeric("AB99CD")
Debug IsNumeric("0")
--Aszid--
Making crazy people sane, starting tomorrow.
Making crazy people sane, starting tomorrow.
Just for fun...
...but with a limitation for string starting by "0"

Code: Select all
Procedure IsNumeric(String.s)
ProcedureReturn String = Str(Val(String))
EndProcedure
Code: Select all
Debug IsNumeric("0899")
Dräc