Re: variable start values
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Dec 10, 2003
- 483 views
----- Original Message ----- From: "Ron Austin" <ronaustin at alltel.net> To: <EUforum at topica.com> Subject: RE: variable start values > > > Pete Lomax wrote: > > > > > > On Wed, 10 Dec 2003 16:33:19 +0000, Jason Dube > > <dubetyrant at hotmail.com> wrote: > > > > > if x[1][1] < 90 then > > > > It took me a moment to figure that out. I suggest you use > > "if x[1][1] < 'Z' then" instead, and probably <= as well. > > > > Regards, > > Pete > > If he wants to trap non capital letters shouldn't it be <65 or > 90 -- > > <'A' or >'Z' this would trap lower case plus misc numbers, punctuation , > > etc. > I believe that if find(x[1][1], upper_case_chars) = 0 then is the safest method, because it does not restrict itself to ASCII coding or to English. All that is needed is to load the sequence 'upper_case_chars' with the values that the current user believes are uppercase characters at runtime. The default can be "ABCDEFGHIJKLMNOPQRSTUVWXYZ" but should be changable under user control. -- Derek