DR ARRAY SCALE TO BASE

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 ARRAY SCALE TO BASE (area; scaleArray; baseArray)

ParameterTypeDescription
areaLongint4D Draw area
scaleArrayNumeric ArrayArray of scale values
baseArrayNumeric ArrayArray of base values

Description

The command DR ARRAY SCALE TO BASE converts an array of scale values into an array of base values according to the ruler setup in area. Both arrays must be numeric (Integer, Longint, or Real) and can be the same array. When you use this command, you do not have to convert each array element individually.

After a call to DR ARRAY SCALE TO BASE, baseArray contains the same number of elements as scaleArray. This command is especially useful when working with DR POLYGON TO ARRAY, DR Array to polygon, DR ATTRIBUTE TO ARRAY, and DR ARRAY TO ATTRIBUTE.

Example

The following example uses the arrays from the example for DR ARRAY BASE TO SCALE. It converts the arrays back to base units and then creates a new polygon with the values.

   DR ARRAY SCALE TO BASE (Area;ArrayH;ArrayH)
   DR ARRAY SCALE TO BASE (Area;ArrayV;ArrayV)
   $ID := DR Array to polygon (Area;ArrayH;ArrayV)

See Also

DR ARRAY BASE TO SCALE, DR GET RULER, DR SET RULER.


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