Empty and logical expressions
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Nov 8 18:54:46 EST 2012
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
>
>
More information about the use-livecode
mailing list