$O10-Mac : Called function returns kTrue but calling function see it as empty

jmv jmvoegeli at bluewin.ch
Sun May 24 04:52:53 EDT 2020


Hi Doug, Hi Terence,

At the origin both variables are local variable.
Local to the calling method and local to the called method.

Event when the called method returns "kTrue", the calling method do not see the result and put "empty" in his own local variable ("vValide").

Some years ago I'd seen (on the list - I do not remember where) that it was better to call do method $cinst.$xyz <http://cinst.xyz/> in lieu of do $cinst.$xyz. So I did a find/replace to change all my calls ans use do method $cinst... since !

But perhaps I did not understand the case quite well enough.

Nevertheless I did change «do method.$cinst» with «do $cinst» in this case,

and, Doug, that worked ::: the local variable received the value and was no more "empty". Brillant !

and now, I have just to reverse what I did earlier ... and get lost of the do “method $cinst.” habit !

Thank You to all that answered as I know Your times is valuable.

Take care.

Best regards,

Jean-Marc


More information about the omnisdev-en mailing list