Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First Record Access
Message
 
 
À
23/11/1997 06:29:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00061814
Message ID:
00061823
Vues:
41
>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform