Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running code can't find form
Message
De
31/10/2001 12:17:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Running code can't find form
Divers
Thread ID:
00575726
Message ID:
00575726
Vues:
53
Hi,

I tried to find some notes on how VFP goes about finding a form or program when it wants to fire it ie. where does it search etc. This is a program trying to find a form within another .exe; here are the details:

- Mk.exe fires up (this is main app for this client)
- user picks "Reports" from menu which first up FoxFire.app report writer

- within FoxFire, you can run some code at various stages of running a report; in this case, in order to create some data, I call a program named MakeData.prg from a hook in FoxFire; MakeData.prg/.fxp is NOT bound into Mk.exe or FoxFire.app because it changes so much and makes it easier to just update this one file instead of booting everyone out of the .exe to update changes; MakeData.fxp is on the server

- MakeData runs but it tries to call the form AskDates.scx to have the user put in a date range; AskDates cannot be found by VFP; AskDates is included in Mk.exe but somehow VFP still cannot find it; if I put AskDates.scx/.sct up on the server, things are fine but I want to get it (and some other input screens) bound into Mk.exe (my preference)

There must be something in the way that VFP looks back through the call stack and somehow it does not search mk.exe when a .fxp is running; here is the call stack abbreviated to summarize:

Mk.exe
FoxFire.app
Makedata.fxp
tries to call AskDates but cannot find

If you know of a help topic or something in the Hacker's guide, that would also help.

Albert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform