Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop Window
Message
From
18/04/2005 11:43:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Desktop Window
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005817
Message ID:
01005817
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform