4D v14.3BLOB TO DOCUMENT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
BLOB TO DOCUMENT
BLOB TO DOCUMENT
BLOB TO DOCUMENT rewrites the whole contents of document using the data stored in blob. You can pass the name of a document in document. If the document does not exist, the command creates it. If you pass the name of an existing document, make sure that it is not already open, otherwise an error is generated. If you want to let the user choose the document, use the commands Open document or Create document and use the process variable document (see example). Notes regarding Macintosh:
You write an Information System that enables you to quickly store and retrieve documents. In a data entry form, you create a button which allows you to save a document that will contain the data previously loaded into a BLOB field. The method for this button could be: $vhDocRef:=Create document("") ` Save the document of your choice OK is set to 1 if the document is correctly written, otherwise OK is set to 0 and an error is generated.
In all cases, you can trap the error using an ON ERR CALL interruption method. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6 SEE ALSO
Create document TAGS Document, Resource fork, Data fork ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||