Re: type string
- Posted by Daniel Berstein <daber at PAIR.COM> Mar 12, 1999
- 580 views
At 11:50 AM 12-03-1999 , you wrote:
>Here's Jeff's winning (modified) string type:
>
>global type string6(object s)
> object c
> if not sequence(s) then
> return 0
> end if
> for i = 1 to length(s) do
> c = s[i]
> if integer(c) then
> if (c < 0) or (c > 255) then
^^^^^
Change this to "c <= 0"
> return 0
> end if
> else
> return 0
> end if
> end for
> return 1
>end type
Regards,
Daniel Berstein
[daber at pair.com]

