Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why one code works, while other doesn't?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00466654
Message ID:
00466854
Vues:
16
>
>	wait window nowait 'Preparing file '+lcSendFileName
>	if file(lcSendFileName)
>		erase (lcSendFileName)
>	endif
>
>	if lnFileSize< 5000000 && 16777184 && Relatively small files <16 MB
>		lcString=filetostr(<strong>lcFileName</strong>)
>		lcString=strtran(lcString,["],'') && Remove double quotes
>		llReturn=strtofile(lcString, lcSendFileName)
>
>
>Nadya,
>
>Note the bolded stuff above, is this a typo or not?
Nope. It produces another file in even different directory. Basically, after lcFileName is done, it could be even deleted (it's a temporary file).

Anyway, seems, like one liner works a little bit faster, than Create Cursor, etc. If somebody can confirm it, I would really appreciate the help, because I ran bunch of tests this morning and can not belive myself anymore...

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform