Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make external prg look for DBF inside calling exe
Message
From
07/10/2015 01:06:44
Walter Meester
HoogkarspelNetherlands
 
 
To
06/10/2015 18:51:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01625594
Message ID:
01625601
Views:
102
>In several places in our application executable we have hooks that call custom, external, encrypted programs whose names are stored in a table.
>
>Recently, a new custom program needed to USE a confidential free table that is included in the executable, and VFP couldn't find it.
>
>Is there any way that we can force the external program to look for the table inside the exe file?
>
>TIA,
>
>Alex

Yes, create a function like DoCmd in your exe, preferably in the main procedure file which is startup at runtime..
FUNCTION DoCmd(cCommand)

&cCommand
ENDFUNC
Then you can call the following from an outside PRG
DoCmd("USE MyInternalTable")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform