Scott:
You’re right! Lessons mal-function, though. I copied the code right out of 
http://lessons.livecode.com/m/4071/l/11787-how-to-call-a-function-or-command-in-another-object
 
<http://lessons.livecode.com/m/4071/l/11787-how-to-call-a-function-or-command-in-another-object>

quote: "put value("myFunction", group "myGroup" of card "myCard") into tResult”
Should be:  "put value(“myFunction()", group "myGroup" of card "myCard") into 
tResult”

Then a bit later on, they actually put in the parentheses.

So, yep, you’re right on the first part, but not on the “forgot” part.  That’s 
not to say that the “forgot” situation is unusual in other circumstances. I had 
tried “send”, then “dispatch”. None worked. Finally, I decided to try to find 
documentation.

Best,
Bill


> On Feb 22, 2016, at 5:20 PM, Scott Rossi <sc...@tactilemedia.com> wrote:
> 
> It looks like you're missing the parentheses in the function name.  Try:
> 
>   put value("getValue()",group "myGroup" of card "myCard") into tVal
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 2/22/16, 5:08 PM, "use-livecode on behalf of William Prothero"
> <use-livecode-boun...@lists.runrev.com on behalf of
> proth...@earthednet.org> wrote:
> 
>> Folks:
>> Sorry for the duplicate posting. But, the topic on my prev one was not
>> descriptive and I need this to work.
>> 
>> I think I¹ve found a bug when trying to call a function and get a return
>> value out of the message path.
>> 
>> I make a stack with a group containing 2 buttons, and a 3rd button to
>> call the function>
>> 
>> Script of calling button
>> on mouseUp
>> breakpoint
>> put value("getValue",group "myGroup" of card "myCard") into tVal
>> end mouseUp
>> 
>> Script of group named ³myGroup²
>> function getValue
>> return "This is my value"
>> end getValue
>> 
>> When I click the calling button, I get ³getValue² returned. The actual
>> return value of the function is not returned.
>> 
>> I¹ve tested this in 7.1.2-r3 and 8.0.0 DP15.
>> I¹m using Mac OSX, El Capitan.
>> 
>> Is it a bug?
>> 
>> Bill
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to