Compare numeric strings with leading zeros
Ralph DiMola
rdimolad at evergreeninfo.net
Thu Sep 3 00:49:49 EDT 2015
I would have thought 5=005 would evaluate as true and "5"="005" would evaluate as false.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
Office: 518-636-3998 ex:11
Cell: 518-636-3998
<div>-------- Original message --------</div><div>From: "J. Landman Gay" <jacque at hyperactivesw.com> </div><div>Date:09/03/2015 00:42 (GMT-05:00) </div><div>To: How to use LiveCode <use-livecode at lists.runrev.com> </div><div>Subject: Re: Compare numeric strings with leading zeros </div><div>
</div>On 9/2/2015 11:16 PM, Ralph DiMola wrote:
> I was hoping that there was a way to coerce "005" into a string of 3 chars.
Adding specific quotes around it does that.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list