Empty and logical expressions
Ralph DiMola
rdimola at evergreeninfo.net
Thu Nov 8 19:26:07 EST 2012
Mark,
Same wrong result on 5.5.1, 5.5.2 and 5.5.3 on XP SP3 and 5.5.1 on MacBook
10.6.8
When using the message box!!!!!!!
When it is in compiled code.... no problem, works as expected.
It still sits at the top of the bite-an-LC-newbee list.
Thanks for checking it out for me!
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
Phone: 518-636-3998 Ex:11
Cell: 518-796-9332
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Mark Schonewille
Sent: Thursday, November 08, 2012 6:55 PM
To: How to use LiveCode
Subject: Re: Empty and logical expressions
Hi Ralph,
I tried it and I get **.
on mouseUp
TestItems 1, ,2
end mouseUp
command TestItems svar1 , svar2 , svar3
put "*" & item 1 of svar2 & "*" --> "**"
end TestItems
Which version of LiveCode do you use?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
spaces. http://www.color-converter.com
We have time for new software development projects. Contact me for a quote.
On 9 nov 2012, at 00:40, Ralph DiMola wrote:
> Mark,
>
> Another one just bit me. Take this command
>
> command TestItems svar1 , svar2 , svar3 put "*" & item 1 of svar2 &
> "*"
> end TestItems
>
> Now call it like this:
> TestItems 1, 3 ,2
> Yields "*3*"
>
> TestItems 1,,2
> Yields "**"
>
> But what I did NOT expect is....
>
> TestItems 1, ,2
> Yields "* *"
>
> TestItems 1, ,2
> Yields "* *"
>
> Now why would extra spaces between parameters become spaces???????
>
> This just move to the top of the bite-an-LC-newbee list for me!
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
_______________________________________________
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