$OS 8.1.7.2 $sendall
malkishtini
malkishtini at gmail.com
Mon Jun 8 23:45:25 EDT 2020
Hi Mike,
You might want to go deeper in your sendall to access all the other objects
in the window.
Depending on how many layers your window has, you could do something like
below (just for an idea):
Do $cinst.$objs.$sendall($ref.$objs.$sendall
($ref.$enabled.$assign(pEDmode>0),pos('E',$ref.$userinfo))Returns %R
Do
$cinst.$objs.$sendall($ref.$objs.$sendall($ref.$bobjs.$sendall($ref.$enabled
.$assign(pEDmode>0),pos('E',$ref.$userinfo)))Returns %R
There might be a shorter notation to access all the objects directly, but I
normally use the above syntax and it works with me.
HTH,
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Mike Rowan
Sent: Monday, June 08, 2020 10:06 PM
To: OmnisDev List - English
Subject: $OS 8.1.7.2 $sendall
Hi
I hope we are all well.
I need to tidy up a sendall problem.
I have a method in my superclass window, $enable.
It runs the following lines on enter fields where the $userinfo is either E
or e.
pEDmode is a parameter to cause enabling or disabling.
Do
$cinst.$objs.$sendall($ref.$enabled.$assign(pEDmode>0),pos('E',$ref.$userinf
o))
Returns %R
Do
$cinst.$objs.$sendall($ref.$enabled.$assign(pEDmode=0),pos('e',$ref.$userinf
o))
Returns %R
but this does not enable entry fields in subwindows, tab panes etc.
I need a nested sendall perhaps but what I have tried does not work. Can
anyone advise?
Ever grateful.
_____________________________________________________________
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