Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force dbf to close for index/reindex with Win32API??
Message
De
11/01/2005 21:02:31
 
 
À
11/01/2005 00:32:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00975938
Message ID:
00976265
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform