Achieving one code base with forms and windows
FORGET IT it works, my window was not as live as I though, upon refreshing all is working as expected, man you have to use a ref on every friggin appearance of a field inside the object… you have to ref to death, I’ll get used to it, converting code is a heavy copy paste scenario where you’re putting that ref in front of everything, I would hate to try to convert a big app to “one code base”, it would be excruciating, am I right? I think so.
> On Feb 7, 2018, at 4:00 PM, Das Goravani <das@Goravani.com> wrote:
>
>
> In line with the thread I am trying to put window code into an object for the first time in my work, and I’m surprised at how it’s not seeming to work
>
> Consider this line of code which is in the object which is instantiated in the window as an instance variable with subtype of actual object
>
> iwr=ref to the window
>
> If len(iwr.iLineItemsList.line_prod_num)
>
> iwr is a ref to the window, and iLineItemsList is an instance variable in the window and is a list, and line_prod_num is a field (column) in the list
>
> Isn’t it correct to code as I have above ? The chain of command is complete. I tried putting in $ivars and that didn’t help
>
> The window is live, I have entered something into that field in that list, it has Length
>
> It evaluates this as unTrue whereas it is True in fact
>
> Am I not doing it right?
>
> When I tab from the field it goes to the object method I specify for it and encounters the above line of code in the instantiated object (through subtype)
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com