Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behaviour of transported 2.6 forms in VFP6
Message
De
13/05/2003 05:37:57
 
 
À
13/05/2003 05:27:44
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00782126
Message ID:
00787618
Vues:
23
Hi David,

(know the full answer without stupid keyboard mistakes by me)

you described only half of the problem.

VFP will execute function calls to functions
sporting the same function name totally different
to FPW when a later loaded App also has the function
defined AND the intended function is NOT in the stack.

Example:


Kfmain.App
KfMain.Prg
(Do KfParts)
KfParts.Prg

KfReport.App
KfReport.Prg
KfParts()

If KfMain calls KfParts the first time, everything will
work "as you used to know".

If you issue a call to KfReport, KfReport executes and is released
from the calling stack again, the next call "Do KfParts"
will execute the function defined in KfReport.

Since the execution order for "bound" programs is never
specified (to my knowledge), I can't call it a "bug",
but as you say, it breaks backward compatibility.

But since the remedy seems to be quite simple (after
a demo app showing that the stack calling chain is still
"honored"), I won't hold my breath for a "fix".

And since the "warning" abaout duplicate function names
has been included for quite some time in the doc's, I believe
it would break method overloading or someting now basic for VFP,
since it never has been fixed while beeing a nuisance for the
developer with "ancient code".

regards

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform