version 1
CT PICTURE TO AREA (area; picture)
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| picture | Picture | Picture |
Description
The CT PICTURE TO AREA command places into area the document contained in picture.
picture must be a valid 4th Dimension picture expression. The contents of area are replaced with picture. If picture is empty, the command is ignored.
Example
This object method allows the user to copy a graph from a Picture field to a 4D Chart area.
$Name:=Request ("Enter the name of the chart to load.")
If (OK=1)
QUERY ([Charts];[Charts]Label:=$Name)
If (Records in selection([Charts])>0)
CT PICTURE TO AREA (Area;[Charts]MyChart)
End if
End if
See Also