Compare numeric strings with leading zeros
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.
Evergreen Information Services
rdimola at evergreeninfo.net
Office: 518-636-3998 ex:11
<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:
More information about the use-livecode