O$: "Queue set current field" in complex grid

Joe Brower joebrower3 at comcast.net
Thu May 15 13:32:31 EDT 2008


Here is what I am doing (and what I now have working). This code does
correctly move the line location:

Do iMainList.$first()
While iMainList.$line
  If not(len(iMainList.tCharField))
     OK message  {"Char field is empty. Please re-enter".}
     Queue set current field {efCharField}  ;; "efCharField" = $obj().$name
     Quit event handler (Discard event)
  End If
  ; etc...
  Do iMainList.$next()
End While

I'm using Studio 3.3 on WinXP SP2, by the way.


Joe B.

-----Original Message-----

From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of
MARTINK2 at nationwide.com
Sent: Thursday, May 15, 2008 12:19 PM
To: OmnisDev List - English
Subject: Re: O$: "Queue set current field" in complex grid


I have tried this numerous times in a complex grid that is associated with 
a list.  I have never been able to get the cursor to change line location 
by changing the current line in the list (Do 
ilstListName.$line.$assign(2), for example).  I just tried it again in a 
simple test form in Studio 4.2 and got the same results:  the grid cursor 
does not change rows, although the current field is changed by the "Queue 
set current field."  What am I missing?

As a result, I wrote my own method set to navigate a complex grid.  I use 
it with row validation to return the grid cursor to the offending row and 
cell that failed validation.  I'd welcome a much simpler navigation 
method, but I haven't found it yet.


Kevin J. Martin
ID-Ten-Tee Software

More information about the omnisdev-en mailing list