Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting EXE into Memo field
Message
 
 
À
15/10/2007 18:58:40
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01261120
Message ID:
01261155
Vues:
16
>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform