Object class in a Table class

Martin Obongita martin.obongita at yahoo.com
Wed Nov 23 21:13:21 UTC 2022


Hi Doug
I am using v.10.22 js forms win 10 platform.
I have never used object reference in my code.
This is because I don't understand how to use them.
I use instance variables of type object, sub type object class created in table classes, to call methods in object classes.
This variable works without issues.
I will need the helping hand of a tutor to make me understand object referencing.
I think this might resolve the issue I'm experiencing of Omnis crashing.

Regards,Martin.







Sent from Yahoo Mail on Android 
 
  On Wed, 23 Nov 2022 at 20:32, Doug Easterbrook<doug at artsman.com> wrote:   a few things would be helpul — like version of omnis you are using.

we have object references in all of our table classes (mostly inherited through instance variables) and objects (instance or local variables ) in a few of the table classes.
I would try object references since those are easier to pass around than objects.


Doug EasterbrookArts Management Systems Ltd.mailto:doug at artsman.comhttp://www.artsman.comPhone (403) 650-1978

On Nov 23, 2022, at 5:37 AM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
 Just a clarification that when you definefromsqlclass from 1 table class works fine.
Problem is seen when you definefromsqlclass from 2 tables to build a list query.
This is when the $construct method of the object class is called and Omnis crashes.







    On Wednesday, November 23, 2022 at 04:17:42 PM GMT+3, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  

 Hi $all
Has anyone tried to reference an instance variable of type object that is created in a super table class, from another object class?
Mine reference seems to crash Omnis when I try to define a list using definefromsqlclass command.

RgdsMartin O.
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 


  


More information about the omnisdev-en mailing list