makeDynAnytype()

The function returns an dyn_anytype with n (n = the number of defined elements) elements.

Synopsis

dyn_anytype makeDynAnytype([anytype x1, dyn_anytype x2 ...]);

Parameters

Parameter Description
x1, x2, ... Individual elements of an arbitrary type (string, int etc.)

Return value

In the event of an error, an empty field will be returned.

Description

The function returns an dyn_anytype with n elements.

Example

The following example creates a dyn_anytype with elements of type int, long string, time, float, char and unsigned.

main()
{
  dyn_anytype dat = makeDynAnytype ((int) 1,(string)
  "example",(time) 
  getCurrentTime(),(float) 1.2345,(char) "100",(unsigned)
  200);
  DebugN(dat);
}

Assignment

Dynamic arrays

Availability

CTRL