Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Varable content to a text file
Message
From
21/08/2000 22:21:10
 
 
To
21/08/2000 20:15:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407566
Message ID:
00407592
Views:
22
>Dear all
>i wanna know how to get when i strore some string in a variable can send it into a textbox?
>
>for example
>
>i have w= "hi all"
>i want to send the hi all in to a txt file or someonelse to can copy that and paste in to another file...
>

You can place the content of a memvar on the clipboard by assigning it to the system variable _CLIPTEXT

_CLIPTEXT = w

You can write to a text file in any of a number of ways; in VFP6, the easiest is STRTOFILE()

? STRTOFILE(w,"C:\MyRandomTextFile.TXT")

Prior to VFP6, you could write a string to a file, but it took more than 1 line of code to acheive, using any of dozens of approaches.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform