Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same function name and the 2nd one is run?
Message
From
02/12/2004 18:16:35
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966500
Message ID:
00966558
Views:
10
Hi Mark

I really believe one has to have a set of reasons to support a decision, but it it easy to forget them sometimes, especially when a general rule will suffice.

I make it a general rule to not have function / procedure libraries.

I make each function it's own little .PRG. That way there could only even be two if I put them in different folders, which I would consider a mistake. ;)

>>Pretend this is theoretical... <g>
>>
>>I have two exact-named functions in a PRG. A call at the top of the program will run the 2nd one, not the first, which I thought would be the logical choice. Anyone know why? Is this always the case?
>
>Yes, that is exactly what is supposed to happen. Been that way for as long as I can remember.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform