All right, Craig, there are other alternatives that _will_ work. :-)

But why doesn't 'if (TheField eq "00000")' work properly? 
        [I can sort of understand this being mis-recognised as a numeric
compare]

Or 'if (TheField:" " eq "00000 ")' ?
        [Now that really should work, in my view, but it doesn't]

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett
> Sent: Wednesday, 6 July 2005 14:30
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] String compare anomaly {Unclassified}
> 
> Mike,
> > I have to code 'if (TheField eq "00000") and (len(TheField) 
> eq 5) then
> 
> How about:
> 
> if (TheField MATCHES "5N") AND (TheField eq 0) then
> 
> or
> 
> if (TheField MATCHES "'00000'") then
> 
> 
> Craig
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> 
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to