$O10-Mac : Called function returns kTrue but calling function see it as empty
Terence Young
terry.young at journeymhc.org
Sun May 24 12:58:11 EDT 2020
Glad you got it to work.
Something to consider, if the called methoid was non-public, then the only option would have been to use do method. Of course, there wouldn't be inheritance direclty involved and I would hope that the return value would make it back to the calling method successfully.
There is always something new to learn in Omnis; and, you cannot tale anything for granted. 😉
terry
Terence J. Young, DC
System Administrator
IT
(608) 280-2679
________________________________
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> on behalf of jmv <jmvoegeli at bluewin.ch>
Sent: Sunday, May 24, 2020 3:52 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject: Re: $O10-Mac : Called function returns kTrue but calling function see it as empty
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
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
If you received this e-mail in error, please notify the sender, delete the e-mail, and do not use, disclose or store the information it contains. This e-mail and any attachments may contain confidential information, including records protected by WI Mental Health 51.30 and/or AODA federal confidentiality rules (42 CFR Part 2) – both prohibit you from making any further disclosure of this information unless further disclosure is expressly permitted by the written consent of the person to whom it pertains or as otherwise permitted by 51.30 or 42 CFR Part 2. A general authorization for the release of medical or other information is NOT sufficient for this purpose. Federal rules restrict any use of this information to criminally investigate or prosecute any alcohol or drug abuse client.
More information about the omnisdev-en
mailing list