Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code can't find form
Message
From
31/10/2001 12:17:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Running code can't find form
Miscellaneous
Thread ID:
00575726
Message ID:
00575726
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform