Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of reserved words
Message
From
22/07/2002 09:58:00
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00680191
Message ID:
00681104
Views:
36
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
Previous
Reply
Map
View

Click here to load this message in the networking platform