Queries Question

Chris Kelleher

Administrator
Staff member
Greetings,
I am working on programming Progress 8.2C12. I have a question about
queries
not associated with a browse.

Is there a way to position the query to a specific record ?

IE, I have the query defined. I open the query and have it order the
records.
I want the user to be able to enter some key info, and have the query
positioned
to the record that matches. A simple find function. I can't use a
browse, due to
interface design requirements.

thanks,

Darryl Hoar
Computer Programmer / Systems Analyst
Osborne Industries, Inc.
darryl@osborne-ind.com
(785) 346-2192
 

Chris Kelleher

Administrator
Staff member
Check out the reposition statement.

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
define buffer lu-co for co.


define query q-co for co scrolling.

open query q-co for each co.


find first lu-co no-lock
where lu-co.co-num = "C000001" no-error.

if available lu-co
then reposition q-co to rowid rowid(lu-co).
[/code]

_______________________________________________
Jeff Smith
Product Developer
Single Source Systems Phone: 317-596-3000 Ext: 175
9003 Technology Dr. Fax: 317-596-3001
Fishers, IN 46038 jefsmi@singlesrc.com

The Developers of FS-Plus
 
Top