Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why one code works, while other doesn't?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466654
Message ID:
00466854
Views:
15
>
>	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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform