1. Re: type string

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]

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu