Can someone tell me if it possible to run an external program from
within a dbase3+ application and then use the results to update a
database. An example of this would be to call up an external
database from within the application.
To run an external program within Dbase III+ all you need to do isQuote:> Can someone tell me if it possible to run an external program from
> within a dbase3+ application and then use the results to update a
> database. An example of this would be to call up an external
> database from within the application.
example: RUN MYPROG
Note: You will need to make sure that you have enough memory to do
the RUN command.
We use it to put a Foxbase+ user interface on a relatively complex
matrix calculator written in C. The matrix is exported to a .txt file, the
C program is run to massage the file, the results are written to
a second file, then Foxbase+ is used to import the file back into a database.
COPY TO infile.txt TYPE SDF
RUN c_prog && Turns infile into outfile
APPEND FROM outfile.txt TYPE SDF
< Alan H. Mintz | Voice +1 714 980 1034 >
< Micro-Quick Systems, Inc. | FAX +1 714 944 3995 >
< 10384 Hillside Road | ...!uunet!ahmcs!alan >
To associate the hlp file with your project, you should specify the App
object's HelpFile property. We can invoke the API function to show the hlp
file. Here are some sample codes for your reference:
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal
hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Private Sub Command1_Click()
Dim nRet As Integer
If Len(App.HelpFile) = 0 Then
MsgBox "Unable to display Help Contents. There is no Help associated
with this project.", vbInformation, Me.Caption
On Error Resume Next
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
If Err Then
Private Sub Form_Load()
App.HelpFile = "d:\T2ADMIN.hlp"