Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code executed by pressing Add button
Message
De
30/07/2004 20:55:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/07/2004 18:43:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00929791
Message ID:
00929811
Vues:
8
>I created a table in VFP6. I then created a form to maintain the data in the table using the forms wizard. I how need to edit the code that is executed when the Add button is clicked, I need to see the code right down to the APPEND BLANK command

I want to explain two things.

#1: The "form wizard" in Visual FoxPro is based on a rather primitive framework. There are much better ones.

You can use it as an example that shows how you can do some things, but you should not consider it as the definitive solution. Better, buy a commercial third-party framework - or use a free one, for there are free ones as well.

Or, create your own. This would be an endeavour "for the strong of heart, the mighty of will, and the misguided in purpose". IOW, it is a formidable task to create a good framework yourself.


Second, the forms created with the form wizard will create a form based on a class. In this aspect, the form wizard would work just like any third-party framework.

The code in the button's Click() event is not defined in the form you create, but in the class on which the form is based. This is a very powerful concept: many forms can be based on the same class. A change in the "parent" class, for example, a correction to a bug, or a feature you add - will affect all your forms! Or at least, all the forms that are based on this particular class.

I suggest you read the corresponding chapters, in the Programmer's Guide, about Object-Oriented Programming, Inheritance, etc.

Greetings,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform