Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of reserved words
Message
De
22/07/2002 09:58:00
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00680191
Message ID:
00681104
Vues:
35
Methods and UDFs are not overloaded. However, you can use the same variable names over and over. Use the LOCAL designation to create completely separate variables with the same name, but different visibilities.
PRIVATE variables hide a reused name from a calling procedure.
Common mistake is:
PROCEDURE TestX
FOR x = 1 TO 10
   NextText()
   ? m.x
ENDFOR

PROCEDURE NextText
* Should be -> LOCAL x
FOR x = 10 TO 20
   ? m.x
ENDFOR
>There is no SQL or views, It is all seek, locate, scatter-gather @say-@get and the like. It is straight out of FPW/FPD, but uses VFP6 runtime. Fox doesn't do overloading, or does it?
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform