Getting a return from a dispatch to a function

Mark Schonewille m.schonewille at
Tue Feb 23 06:49:09 EST 2016


Have you tried this using value("getValue()",...) instead of 
value(getValue,...)? I think getValue is interpreted as a string. 
Probably, this isn't a bug but just how xTalk languages are supposed to 

Kind regards,

Mark Schonewille

Buy the most extensive book on the
LiveCode language:

Op 2/23/2016 om 01:55 schreef William Prothero:
> Folks:
> 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
> William Prothero, Ph.D.
> University of California, Santa Barbara, Emeritus
> prothero at
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list