Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving a variable to a .txt file
Message
De
03/02/2006 15:26:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01093487
Message ID:
01093517
Vues:
23
>>>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform