|
1 members (Russ),
10,950
guests, and
1,516
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
S |
M |
T |
W |
T |
F |
S |
|
|
|
1
|
2
|
3
|
4
|
5
|
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
This is another custom island. This one could be used for ads. This spot is one of the best places for ads on your site to be placed. This can be enabled/disabled on a per forum basis.
|
|
|
|
Joined: Dec 1999
Posts: 30,868
Master Elite Member
|
FUNCTION Str_IsLong(BYVAL Str AS STRING) AS LONG
'Purpose
' Used to determine if a string is a valid LONG.
'Parameters
' Str (STRING) = The string we're testing.
'Return (LONG)
' Returns 1 if Str is a valid LONG.
' Returns 0 if:
' - Str is not a valid LONG.
' - Str is zero-length.
'Version History
' 1.0 2010.03.12 Tested by Russ Tanner on PB/CC 5.03.
FUNCTION = IIF&( _
(LEN(Str) > 0) AND _ 'Empty string not a valid LONG.
(ISFALSE (VERIFY(Str, "-0123456789"))) AND _ 'Only these characters valid.
(ISFALSE (VERIFY(MID$(Str, 2), "0123456789"))) AND _ 'Minus only valid in front.
(VAL(Str) >= -2147483648) AND (VAL(Str) <= 2147483647) _ 'Check range.
, 1, 0)
END FUNCTION
|
|
|
|
|