Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating a form with a range of RECNO()
Message
From
06/10/1998 15:41:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00143990
Message ID:
00144346
Views:
17
>A old 2.5 app Im migrating to (and merging with a current) 5.0 app uses RECNO()'s for searching/printing. For Example: goto firstno; STORE LASTNO-FIRSTNO TO NO; STORE NO+1 TO NO; REPORT FORM C:\FOXPROW\concrete\dotplace.FRX NEXT NO TO PRINTER NOCONSOLEWhich works, at least in the 2.5 program.I want to mimmic this behaviour (using RECNO()'s) but calling a form with a summilar REPORT dosent seem to work, and trying to populate a view with a filter condition of RECNO() BETEWEEN (first, last) dosent work either.Im definitly going to have to use RECNO for the old data (its actualy on the printed reports), so this is realy my only option.

The Recno() of a view need not be the same as the REcno() of the underlying table, specially if there's a Where clause. You may be better off (if a view is a must) to use something like

Select *, recno() as rcn from OriginalTable

in your view definition, and replace references to RecNo() with Rcn; maybe you should index by Rcn to achieve original ordering of records. I know this is a kludge, but if the original tables are designed so, it takes a kludge to emulate the behavior.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform