Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>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?
the functions are inserted into a internal array in a LIFO order ( it is a stack ).
When VFP search a function it scan this stack,
then the last it is the first that VFP found and then use it.
A side effect:
the functions that are to the end of a PRG are those calls more quickly.
Fabio
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement