Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Records in a Page Frame
Message
De
06/05/1998 02:13:23
 
 
À
06/05/1998 01:35:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00097235
Message ID:
00097241
Vues:
18
Hi Robert ----

>How do I set up an ADD button procedure so it knows that when I change the
Active Page in a Page Frame, it knows to add a record to that particular table in the active page. For example I have 4 pages called Student, Parent, Emergency, and Grades. If I click on the Student Page, when I click on the ADD button I want it to only add to the Student Table.
>


Assuming the Add button is in the main form (?) In the Click() method of the Add button, do the following:

DO CASE
CASE THISFORM.pgfWhatever.ActivePage = 1 && Students???
SELECT student
INSERT INTO student
THISFORM.pgfWhatever.pgStudent.SetFocus()
CASE ... && for other pages.
ENDCASE
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform