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
09/10/2015 16:25:57
 
 
To
08/10/2015 14:30:22
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:
01625791
Views:
51
Hi Alex,

tnDSID defaults to the current datasession. This gives the ability for callers from any datasession to call this routine, which uses a class, and get the table/cursor opened in the specified datasession.

And yes, tlLoud means it lets the user know what's happening.

I do a lot of this kind of packaging: it makes code more intelligible, with less typing, and less temptation to cut corners. Also the routines get proven and improved over time. That I could open a table from outside the exe was just a bonus. :)

Hank

>>>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
>>
>>Hi Alex,
>>
>>I have a prg, usetable, which takes the following parameters:
>>
>>LPARAMETERS tcTable, tcAlias, tcDir, tlExclusive, tnDSID, tlNoUpdate, tlLoud, tlUseDD
>>
>>There is no execscript or macroing involved, for the reasons others have cited.
>>
>>Mine is geared toward my particular usage requirements, but you get the idea.
>>
>>hth,
>>
>>Hank
>
>Thank you for the suggestion Hank.
>
>I can figure out most of the parameters except tnDSID and tlLoud. (Is tlLoud something like Verbose or Notify? )
>
>LPARAMETERS tcTable, tcAlias, tcDir, tlExclusive, tnDSID, tlNoUpdate, tlLoud, tlUseDD
>
>Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform