Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Correct Data Type for Documents
Message
 
To
14/01/1999 09:39:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00175878
Message ID:
00175911
Views:
25
Hi Jason,

>My question is what data type should I be using for the field Document_image? This is the field that will display the document for the user.

If you really want to store the document in there, it would be a general field. I personally avoid them, since you have little control over them and you can't get a document out of the general field.

I would store only the path and name of the document and use OLE automation or ShellExecute to launch the appropriate application. Or use a binary memo field and copy the file into this memo. When the user wants to add or view it, just copy it back into a temporary file and display that one.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform