Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same function name and the 2nd one is run?
Message
 
À
02/12/2004 15:45:15
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00966500
Message ID:
00966585
Vues:
6
>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?

Jay,

With Fox, you can't overload functions this way. Why the compiler will run the second always, I don't know.

In Fox, to overload functions, you must check the parameters. In other languages, you use an "overloads" directive and provide and call the function with the appropriate parameter list.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform