Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where these parameters are coming from?
Message
De
28/11/2004 07:50:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00965200
Message ID:
00965212
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hi Nadya.

So, I wanted to find out the problem and took out code from Add method of the form (this is a custom method of our base form class). The form still has problems, but now when I want to put the code back I see an lparameters statement with 4 parameters eItem, cKey, eBefore, eAfter. They look like some internal MS parameters (I'm sure, we would never name parameters like that). So, do we have some name conflict here?

Yes. When The collection class was added to VFP in version 8, ADD became a reserved word (it is a method of the collection class). You need to change the name of your method to something else - AddNew() maybe.

I remember when we moved from FPW 2.6 to VFP 3.0 - many people had the same type of problem because before buffering was introduced, they had variables called OldVal and CurVal to handle update conflicts < s >.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform