Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Desktop Window
Message
De
18/04/2005 11:43:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Desktop Window
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01005817
Message ID:
01005817
Vues:
63
Please forgive me as this is a re-post of a prior thread in a different forum. I just wasn't sure I had made my request quite clear enough <vbg>

I am trying to create a window on the desktop outside my VFP app (pehaps an instance of Notepad), and able to accomplish the following:
Declare Integer GetUserName In advapi32 String@, Integer@
lcusername = Replicate(Chr(0),255)
lres = GetUserName(@lcusername,255)
lcuser = Allt(Left(Upper(lcusername),At(Chr(0),lcusername)-1))
LcUserPath = 'C:\DOCUMENTS AND SETTINGS\'+lcuser+'\DESKTOP'
USE MyTable IN 0
Select MyTable
Copy To '&lcUserPath\Export.txt' Delimited  Fields Name,phone,address,city,state,zip
Modify File '&lcUserPath\Export.Txt'
CLOSE DATABASES
RETURN
This creates the text file on the desktop and opens it for edit within VFP for editing etc., but I'd like to have it open on the desktop in another application such as Notepad so that it can remain open after the VFP app is closed.

Thanks again,

dg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform