Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force dbf to close for index/reindex with Win32API??
Message
From
11/01/2005 21:02:31
 
 
To
11/01/2005 00:32:42
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975938
Message ID:
00976265
Views:
22
Hi Virusim:

If you are using a "Launcher" application to start your programs.....
You COULD command the "Launcher" to find and close a application.
(you do need to know the application name)

Use the APIs

Find the Application handle:
lnHWnd = FindWindow(0, @ProgName)

Force An Application To Close:
=SendMessage(lnHWnd,0X10,0,0)

HTH

Mal

>Hi,
>
>In order to index/reindex a dbf file, we must open that
>dbf file exclusively.
>
>However, in some case, the file to index/reindex is open by
>other, therefore, is any Win32API to force the other party
>to close the file that we want to index/reindex so that
>we can proceed to index/reindex that file.
>
>Any example is appreciated. Thank you
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform