4D v16.3DOCUMENT TO BLOB |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
DOCUMENT TO BLOB
DOCUMENT TO BLOB
DOCUMENT TO BLOB loads the whole contents of document into blob. You must pass the name of an existing document that is not already open, otherwise an error will be generated. To let the user choose the document to be loaded into the BLOB, use the command Open document and the process variable document (see Example). Compatibility Note: The optional * (resource fork management in older versions of Mac OS) is no longer supported in 4D as of 4D v16. For more information, see the Deprecated and Removed Features manual. You write an Information System that enables you to quickly store and retrieve documents. In a data entry form, you create a button that allows you to load a document into a BLOB field. The method for this button could be: $vhDocRef:=Open document("") ` Select the document of your choice OK is set to 1 if the document is correctly loaded, otherwise OK is set to 0 and an error is generated.
In each case, you can trap the error using an ON ERR CALL interruption method.
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D v6 TAGS Storing documents, Resource fork, Data fork, Document ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||