Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure Hierarchy
Message
De
20/05/1997 16:20:12
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Procedure Hierarchy
Divers
Thread ID:
00032985
Message ID:
00032985
Vues:
83
Here is an interesting problem. Here are the salient points.

[1] Within a program file I have a function called GetPend.
[2] Also within this program file is a report print routine.
[3] The report has a call to GetPend()
[4] One of the global procedure files (SET PROC TO...) also has a function called GetPend

Now, if I run the report from the program file with
REPORT FORM .......
it all works fine and calls the GetPend function from the current program file.

However, I have a standard Reporting form which I normally use so the user can select View, Print, print to file, change printers etc. It takes a report form as input.

If I do a DO FORM Reporter WITH "" then the function that is called is the one from the global procedure file, not from the current program (that has the DO FORM in it).

This seems to ignore the procedure hierarchy where the function in the current program should be in the call stack and should be called.

Does anyone have any ideas why this happens and what can be done to avoid it?

Bob

boblucas@minerva.ca
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform