DR PICTURE TO AREA

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR PICTURE TO AREA (area; picture)

ParameterTypeDescription
areaLongint4D Draw area
picturePicturePicture

Description

The command DR PICTURE TO AREA places into area the drawing contained in picture.

picture must be a valid 4th Dimension picture expression. picture can contain either a previously saved 4D Draw drawing or a picture. The contents of area are replaced with picture. If picture is empty, the command is ignored and DR Error returns error code 39.

Example

The following example sets up the current 4D Draw document based on a template picked from an element in an array:

   QUERY([Templates];[Templates]Type=2)
   SELECTION TO ARRAY([Templates]DrawDoc;aTemplates)

The following is the object method for the aTemplates array:

   CONFIRM("Replace current 4D Draw area?")
   If (OK=1)
      DR PICTURE TO AREA(Area;aTemplates{aTemplates})
   End if

See Also

DR Area to picture.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next