Passing Params to Handlers -- Did it Change?

Sivakatirswami katir at hindu.org
Tue May 29 06:31:34 EDT 2007


Jim Ault wrote:
> Stephen is correct
> 
> get lastCharOfStr(str)
> 
> function lastCharOfStr str
> put char -1 of str into lastChar
> return lastChar
> end lastCharOfStr
> --------------
> OR
> ------------------
> lastCharOfStr str
> get the result
> 
> on lastCharOfStr str
> put char -1 of str into lastChar
> return lastChar
> end lastCharOfStr
> 
> Memory switch back "on"  :-)
> 
> Jim Ault
> Las Vegas
> On 5/28/07 7:35 PM, "Sivakatirswami" <katir at hindu.org> wrote:
> 
>> Either my memory is bonkers, something changed or there is a bug
>>

confirmed:

on mouseup
   scaleImageToWidth 360, tImage
end mouseup

on  scaleImageToWidth pWidth, pImage
   put pWidth
end scaleImageToWidth

--> 360

on  scaleImageToWidth pWidth, pImage
   put pWidth && "|" && pImage
end scaleImageToWidth

--> 360 | DSC04328.jpg

Grey cells recharged

Thanks!

Sivakatirswami
www.himalayanacademy.com



More information about the use-livecode mailing list