Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - BROWSING a VIEW
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00025677
Message ID:
00026405
Views:
35
>>>>>Is browsing a VIEW any different then browsing a table.
>>>>>I am have trouble with BROWSE FIELDS in my VIEW.
>>>>>Can you help?
>>>>
>>>>You usually want to put a view into a grid to browse at run time.
>>>
>>>Hi Bruce.. when you pick your record from the grid and you go back to the
>>>form, how did you move the record pointer?
>>>
>>I usually do a SEEK() on a key for this (you could use LOCATE on small table too). But you need to use a unique key field or combination of fields, so that the correct record is found, then just do a refresh of form.
>When I pick a record from a grid and then go to a form to edit it, I pass RECNO() to the form and then GOTO nRecord. However, when my Nav buttons refresh code (from my version of the txtbtns class from WIZSTYLE) uses SKIP and SKIP-1 to see if it is at the top or bottom, it would lose its place. Is there something inherently wrong with GOTO cRec followed by SKIP, or did I do something else wrong? Is that why you SEEK instead of GOTO? I used a dumb workaround, which was all right because my table was small.

I don't see how you could lose your place. I have never had a problem
with goto or seek. I would think that goto is faster and when I get the
change, I use goto.

thanks..rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform