Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving a variable to a .txt file
Message
From
03/02/2006 15:26:50
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01093487
Message ID:
01093517
Views:
22
>>>Is this easily done?
>>I don't know
>>try
>>
m.myvar = [Is this easily done?]
>>m.myfile = [c:\Timothy Bowen.txt]
>>STRTOFILE(m.myvar,m.myfile)
>
>Well, the limit is only 255 chars so I guess my plan B is to have vfp create a .txt(if it doesn't exist) then open it using ShellExecute. How would I create it, perhaps saving an empty mem variable?

I thought the 255 limit applied to string constants. Longer strings can be broken up and concatenated. For example:
m.myvar = "first long part " +;
          "second long part "+;
                  .
                  .
          "rest of string"
m.myfile = "c:\Timothy Bowen.txt"
STRTOFILE(m.myvar,m.myfile)
Previous
Reply
Map
View

Click here to load this message in the networking platform