Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting EXE into Memo field
Message
 
 
To
15/10/2007 18:58:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01261120
Message ID:
01261155
Views:
14
>>>>>How do I get an EXE into a Memo field? Not the reference, but the actual file. Thanks!
>>>>
>>>>
>>>>replace MyMemo with FileToStr("MyExe.EXE")
>>>>
>>>>
>>>>Better make it a memo binary; a codepage translations is definitely not appropriate here.
>>>
>>>This doesn't work for me because the files all have the same header that has a bunch of the control characters and this: This program cannot be run in DOS mode. The files will not run in DOS, which is what they need to do. They do run in DOS prior to using FileToStr into the table and then StrToFile out of the table, so putting them into Memo fields corrupts them from working in DOS, I think. Any thoughts? Anyone?
>>
>>That's precisely why you should use a memo binary, instead of a memo - to avoid corruption.
>
>Okaaaaay. What is memo binary?

Just one of the VFP types for the field. You can find it when you create a table.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform