Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Records in a Page Frame
Message
From
06/05/1998 02:13:23
 
 
To
06/05/1998 01:35:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097235
Message ID:
00097241
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform