anyways, is there a way that i can avoid using the browse command?
what i want is to display the content of the field1 in a single line(ex. @12,12 say field1)and can be navigated by arrow key(up&down) for records to skip,and when i press the enter key what ever record is displayed must be saved in a variable.
There is noway I can think of without Designing a screen and a program to call it. If not wanting to use the browse command because the user can change the data or is to big on the screen, try this code.
This is VFP code so you might have to change a few things.
store "" to MemvarNAme
DEFINE WINDOW somename FROM 12,12 TO 15,30 IN SCREEN TITLE '' NONE NOGROW NOCLOSE NOFLOAT NOMDI NOZOOM
ACTIVATE WINDOW somename
USE dbfname
BROWSE FIELDS Fieldname IN WINDOW somename TITLE '' NOCAPTIONS NOAPPEND NODELETE NOEDIT
MemVarNAme = Fieldname
USE
RELEASE WINDOWS somename
@ 12,12, say memvarName
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.