Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms with 1 to 1 relationships tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00009145
Message ID:
00009631
Vues:
34
>>>>
>>>>Is this what you're looking for?
>>>
>>>Thanks. I think so. I tried it and looks fine but I can't access the child's table fields. I need to save those fields if they aren't empty.
>>When adding data to each of the tables in the form you might still need to do something like this:
>>
>>SELECT TABLE1
>>APPEND BLANK
>>SELECT TABLE2
>>APPEND BLANK
>>
>>Otherwise the second table's fields will not enable to edit.
>>HTH,
>>Greg
>Thank's Greg. Where do I have to put that code?
>Do you know about some book for learning VFP from the programer's point of view? In earlier versions of foxpro, the books I've read allways have two parts: in one they talk everything about the interface (from a user point of view); in the other part they explain how to build programs just by coding instructions. I wonder if there is some book around that explains how to build a program using the interface and then programing just the necessary to customize the application.
>Enrique
You could start by adding a commandbutton to your form and putting the code (stated above) in the click event of it. You could set the cation to "ADD". You will need to refresh the form after the code: ThisForm.Refresh().
This causes the controls on the form to reload, in this case it would make them blank and the cursor would appear in them.
Then you'll need buttons for delete, revert, first, next, etc. to perform operations on the table(s). Check out the code supplied with Tastrade.
Alot of people talk bad about Tastrade, but it offers a great learning experience especially if you haven't used VFP before.
If you're a beginner "Mastering Visual FoxPro" by Siegel is a great place to start. I have about 8 or 9 books on VFP now. It seems every author has a slightly different approach. But to learn VFP, start by learning the basics of manipulating tables through the code window, then advance to learning the controls. Learn the properties, events, and methods of thse controls, and make sure to apply different techniques to them. Good Luck!!!
** ** ** ** ** ** ** ** ** ** **
Gregory Cummines
Visual FoxPro 3.0/5.0
C/C++ Applications
** ** ** ** ** ** ** ** ** ** **
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform