Thanks for the tip, and clarification.
On Fri, Jun 15, 2018 at 3:34 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Yes, but you found more utility than I was thinking of. My thing is that > when tracing/debugging, I need to see what a function returns, and I can > only do that if I put the returned value or it or the result into a > variable of some sort. > > Bob S > > > > On Jun 15, 2018, at 14:28 , Mike Bonner via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > If you mean using merge inside the function, I guess one could do the > merge > > beforehand and pass it in as a parameter, or alternatively do the merge > in > > the function and return the generated url string as part of the returned > > value. IE change it like so.. > > function translate pText,pLang > > put merge(kGetTransUrl) into tUrl > > get url tUrl > > return "URLString: " & tUrl & cr & it > > end translate > > > > Then just dump the first line if things are working right. Hmm. > Actually, > > pre-merging is nice because it would allow the use of "load" with > callbacks > > for multiple url calls. Use the callback to process, part of which lets > you > > see the URL associated with the callback. Sounds like a better option > than > > using a function call for sure. > > > _______________________________________________ > 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