Passing Params to Handlers -- Did it Change?
Jim Ault
JimAultWins at yahoo.com
Mon May 28 22:54:54 EDT 2007
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
>
> I have this in a top script, that picks up an file name on a loop:
>
> global gCurrentFolder
>
> on mouseUp
>
> put fld "fileList" into tImages
>
> repeat for each line tImage in tImages
> put (gCurrentFolder& tImage ) into tNextImage
> set the filename of image "currentImage" to tNextImage
> scaleImageToWidth(360, tImage)
> end repeat
> end mouseUp
>
> as a test I have, in the stack script:
>
> on scaleImageToWidth pWidth, tImage
> put pWidth; exit to top
>
> end scaleImageToWidth
>
> And, to my surprise, the params passed to the handler are not being
> parsed...
>
> I get this result for the first param "pWidth"
>
> 360,DSCF0347.JPG
>
> Is this not correct syntax for for passing several values to a handler?:
>
> scaleImageToWidth(360, tImage)
>
> I thought this always worked before.. i must be missing something here.
>
> Sivakatirswami
> www.himalayanacademy.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list