Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How show record number if BROWSE 4

Status
Not open for further replies.

ilovemusic

Programmer
Nov 4, 2003
2
0
0
US
I'd like to use the BROWSE command with a table and have it show the number of each record in the display.

I used to be able to do this, but forgot how. Anyone know?
 
I don't see a way to do it with a straight BROWSE. How about

SELECT *, RECNO() AS recnum FROM mytable


Jim
 
Hi ilovemusic,

If you are using VFP8 and you either have the Task Pane load at startup or open and then close the Task Pane, DB status information will be gone from the Status Bar. Not sure which setting is being turned OFF, though.

Regards,

Mike
 
BROWSE FIELD xrecno=RECNO(), DField1, DField2, ...

i sure hope this helps. peace! [peace]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
 
Hi ilovemusic,

Just out of curiosity, are you using BROWSE in a program, or in the IDE?

Regards,

Mike
 
ilovemusic,

Down & dirty:

Alter Table Current.dbf Add Column nRecNo n(5)
Replace all cRecNo with RecNo()
Browse

Pat
 
To MSPRATT

I'm using Browse in the IDE but also sometimes in short programs.
 
The reason I ask is because the Task Pane resets the status bar. It can be turned back on by issuing SET NOTIFY CURSOR ON in the Command window.

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top