Hello There,
and..., even without parentheses, tab&tab&tab&tab&a will return 4, just because the non empty fourth item will force its evaluation...
Best Regards,
Le 24 mai 04, à 19:46, J. Landman Gay a écrit :
On 5/24/04 12:09 PM, rand valentine wrote:
If I do this: set the itemDelimiter to tab put the number of items of tab & tab & tab & tab 1 is returned. why not 4? I don't get it. -- if I do this: set the itemDelimiter to tab put empty into item 4 of testVariable put the number of items of testVariable 3 is returned. why?
Because without forcing the compiler to parse the tabs in the first case, each tab is considered a text string. The concatenation looks like this:
"tabtabtabtab"
If you put parentheses around it, the compiler will evaluate the constants first before working with the string:
put the number of items of (tab & tab & tab & tab)
Gives 4.
-- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
-- Bien cordialement, Pierre Sahores
100, rue de Paris F - 77140 Nemours
[EMAIL PROTECTED]
GSM: +33 6 03 95 77 70 Pro: +33 1 41 60 52 68 Dom: +33 1 64 45 05 33 Fax: +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis Applications et SGBD ACID SQL (WEB et PGI) Penser et produire "delta de productivité"
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution