We know how important your customer’s existing 4D View documents are, and being able to move them to 4D View Pro has been a priority for us. This is now possible with 4D v16 R6 (as a preview). Converting your 4D View documents to 4D View Pro is just a single line of code, thanks to the new command, VP Convert from 4D View.
How do I convert a document?
The code below shows you how to convert a 4D View document stored on disk:
// Load your 4D View document in a blob
DOCUMENT TO BLOB("document.4PV";$b)
// Convert the document to a 4D View Pro object
$VP:=VP Convert from 4D view ($b)
The output is an object in 4D View Pro format that can be used in a 4D View Pro area with an additional line of code:
VP IMPORT FROM OBJECT ("ViewProArea";$VP)
Even better with a video
They say a picture is worth a thousand words, but in this case an example says even more. This video shows that the converted document looks just like the original one, and the document structure and formulas are still there after the conversion. Check it out and get inspired!
The 4D View document conversion feature is provided as a preview and is being continuously improved. For now, the VP Convert from 4D View command handles the conversion of most of the properties and information stored in 4D View documents, including: formats, styles, borders, values, formulas, selections, etc. References to the database, methods and other 4D variables will be handled in upcoming R-releases.