Omnis refusing to change $top of a field
Hi Bas,
Could it be the name of the field giving you issues? I believe you said you
are creating new entries from a sub window.
When I do things like that, I track it by the $ident since the name would
not necessarily be the same as my original template field was.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf
Of Bastiaan Olij
Sent: Tuesday, June 6, 2017 7:30 AM
To: omnisdev-en@lists.omnis-dev.com
Subject: Re: Omnis refusing to change $top of a field
Hey Phil,
Yeah close enough as an explanation 🙂
No I’m pretty sure the values are correct. The code that fails is this:
Calculate $cinst.$bobjs.1234.$top as lvTop+2 Calculate
$cinst.$objs.ivEntry.$top as lvTop+5
The background object moves exactly where it needs to go.
The entry field fails but not always.
If the values were wrong I would expect it to consistently fail and for both
to fail
It’s really weird, it’s like Omnis does not accept the change…
Cheers,
Bas
On 6/6/17 6:46 pm, Phil (OmnisList) wrote:
> Bas,
>
> So, to be clear, after entering a code, the entry box moves down the
> height of the sub window, lets say 30 points, so you just add 30 each
> time to the $top figure, and then the previous $top figure is used for
> the subwindow $top?
>
> So, on a refresh, you set $top to 0, or 1… and that is what fails?
> Or something else?
>
> Maybe the code that is calculating $top is wrong when the effective
> list is empty?
> Maybe it doesn’t think the list is empty at that point.
> Hard to guess without seeing any code…
>
> regards
> Phil Potter
> Based in Chester in the UK.
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com