dynClear()
Deletes the entire array.
Synopsis
int dynClear(<dyn_type> &aDyn);
Parameters
| Parameter | Description | 
|---|---|
| &aDyn | Array to be deleted | 
Return Value
In the event of an error -1, otherwise 0.
Errors
A message is issued in the event of missing or incorrect arguments or if the array is not a variable.
Description
Deletes the dynamic array.
For <dyn_type> either dyn_string, dyn_int, dyn_uint or dyn_float can be used.
dynlen(array) ==
                0
Example
The following example shows how the dyn_string "s" is filled with values (value1, value2) and then sent to the log viewer. With the dynClear function the items of the dyn_string are deleted and to control the process the function tries to send the contained items of the empty dyn_string to the log viewer again.
main()
{
  dyn_string s;
  s = makeDynString("value1", "value2");
  DebugN(s);
  dynClear(s);
  DebugN(s);
}
            Result:
WCCOAui: [dyn_string 0 items]
        Assignment
Dynamic fields
Availability
CTRL
