Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy file fails with embedded files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00814381
Message ID:
00816369
Vues:
24
Hi Sarah,

You can use LEN() function to get the lenght of VFP string.
IF LEN(lcStr) <= 65535 
* The size of the string is less than or equal 64K
ELSE
ENDIF
You can also modify UDF's you're using so they can handle longer strings.

>>Be carefull with strtofile and filetostr UDF's for VFP5 you found because they may be limited to file size of 64K.
>I've been thinking about this and pondering some other code which uses strtofile. In this I work through a table and create html which I output then pop a browser. How do I test that my string doesn't exceed 64K.
>
>Is it enough to simply check that len($str) < 64000?
>
>I add to my string through a method so it's simple enough to test the string each time I try to add to it.
>
>thanks in advance.
>
>Sarah
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform