makeDynShape()

Returns a dynamic array of shapes.

Synopsis

dyn_shape makeDynShape([shape s1, shape s2,...]);

Parameters

Parameters Meaning
s1,s2 Single shape elements

Return value

In case of errors, an empty array is returned.

Description

Returns a dynamic array of shapes.

Example

Creates an array of shapes: PRIMITIVE_TEXT1, PUSH_BUTTON1 and ELLIPSE.




main(mapping event)


{


  shape a = getShape("PRIMITIVE_TEXT1");


  shape b = getShape("PUSH_BUTTON1");


  shape c = getShape("ELLIPSE2");


  dyn_shape i;


  i= makeDynShape(a,b,c);


  DebugN("Created shapes:", i);


}

Assignment

Dynamic arrays

Availability

CTRL, UI

See also

Dynamic arrays