Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First Record Access
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00061814
Message ID:
00061844
Views:
44
>>I have created a sub-classed form that I want to use whenever the user wants to maintain any of several lists that the application requires. Whenever I create a form based on this sub-class, it will, by definition, have only one table open--the one that holds the data for the target list.
>>
>>Here's the problem: in the library's Add button's Click() method, I issue an APPEND BLANK. (I can't use INSERT INTO because it requires the name of the table, which the sub-class doesn't know.) If this is the FIRST record for the table, I can't get VFP to point to that record! The text control is disabled--I am at EOF. Issuing an EDIT pops up a window that I don't want. As soon as there is at least one record in the table, everything behaves as expected. How can I get to that newly created very first record????
>>
>>TIA.
>>
>>John
>
>Hi John,
>
>Try this
>
>INSERT INTO(ALIAS()) ...
>
>Sergey
>sergey@homemail.com

John, when I do this I store the table name to a form variable when it loads (or when it changes). Then I use this value in my Insert command.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform