Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy Memo using C#
Message
 
À
30/12/2003 16:19:35
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00862973
Message ID:
00863244
Vues:
14
>Is there a COPY MEMO command or anyway to copy the contents of a VFP memo field to disk? What if the memo field contain binary data, could this still be accomplished?

There's no such construct - you have to read the string then write out to file using a StreamWriter or other stream based output. StreamWriter is pretty painless though.

As to binary data, that'll be tough. I'm not 100% sure if you mark a VFP memo as binary memo whether it gets returned as a byte[] buffer. But a regular memo gets returned as a UniCode string, which means that if there's binary data in there the data may not come out correctly. For example, it'll likely truncate on a CHR(0) in the binary content.

+++ Rick ---



>
>Thanks,
>
>Jerry
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform