Message box

Alain Bois in.bois at wanadoo.fr
Tue Mar 30 06:48:50 EST 2004


By using the doc, I try
function reversedName firstName,lastName
     -- firstName and lastName are parameters
     put lastName,firstName into constructedName
     return constructedName
   end reversedName
If I type put put reversedName("fdfs","azaa") it's good but I type put 
reversedName ("fdfs","azaa") Tev output ,azaa.
Why?


Le 30 mars 04, à 03:48, Dar Scott a écrit :

>
> On Monday, March 29, 2004, at 06:11 PM, j wrote:
>
>> of course, you can do the same thing with revolution's built-in sum() 
>> function, making this all pretty academic.
>
> BTW, here is a tip for those who have avoided using sum() and similar 
> functions.
>
> I read the documentation as this function having only one parameter.  
> That is, the commas in the example were operator commas and not 
> parameter separator commas.  I saw the interesting parsing of 
> parameters of format() as an example of that kind of thing, so I was 
> not surprised.  My concern was that numberFormat might limit digits in 
> the arithmetic.  I didn't use it.
>
> However, I now know that I read the doc wrong.  The function sum() and 
> max() can have multiple parameters and are not forced to have a single 
> parameter of a comma delimited string.
>
> Dar Scott
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list