Function output, a bug or a feature?
devin_asay at byu.edu
Wed Feb 11 09:28:18 CST 2004
Here's the recipe:
Create a new mainstack.
Create a field on the card.
Open the stack script and write a simple function handler. I used this
function cube theNumber
Open the message box and call the new function:
put cube(3) -- works perfectly, the result is displayed in the message
However, try putting the output of the function into the field:
put cube(3) into fld 1 -- the output goes into the message box, not
If you try this with a standard Transcript function:
put sqrt(4) into fld 1 -- works as expected, with output to the field.
Has this always (not) worked like this? Have I just missed it all these
years? I could swear I've done this successfully before.
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode