How do you call into a Table Class
Das Goravani
das at Goravani.com
Mon Jan 29 19:42:06 EST 2018
Mayada,
Why do you prefer the object class, and, the call is not the same because a table is INSIDE a row or list, the object is not, as far I understand, and, what about losing touch with your variables inside the window you’re calling from? I can’t lose touch with them… I have yet to see how a table works out, I’m just trying it now… tables and objects… do they keep scope with variables in windows, declared in windows, or do you have to pass everything as parameters or references, that I am curious about. Thank you for your valuable time.
Das Goravani
We both have nice names
> On Jan 29, 2018, at 3:33 PM, Mayada Al-Kishtini <malkishtini at gmail.com> wrote:
>
> Das,
> To call a "public" method from a table class, you need to define a list/row variable as that table class and then call the method:
>
> Define rowvar as your table class
>
> Do <rowvar>.$<yourpublicmenthodname> Returns <the return value from your method>
>
> I would create the method in an object class and call it from there the same way, by defining an object var in your window, if your method is not related to your table class.
>
> HTH,
> Mayada
>
> -----Original Message-----
> From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Das Goravani
> Sent: Monday, January 29, 2018 6:17 PM
> To: OmnisDev List - English
> Subject: How do you call into a Table Class
>
>
> To put code that would normally be behind a button on a window say, into a table class, and call it from the window, how do you do that call?
>
> I just tried using the Notation Inspector, dragged over a line containing a new method I made in the table class, and the window doesn’t like that, it beeps and says that the method is not a valid child of the table class (uses other words).
>
> I can’t figure out ANY way to call a table class method from a window. Please help.
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list