The OnLoad event is called for each item when an array file is loading.
Syntax
Pointer Array.OnLoad(
Integer index,
String line)
Integer index,
String line)
Parameters
| index | Index of the new item. |
|---|---|
| line | Line of the new item from the file. |
Return value
The OnLoad event returns the reference of the new item object.
You can return null to do not to insert a new item.
Example
message Pointer Application.Array.OnLoad(Integer index, String line)
{
Value value
value = new Value
value.SetString(line)
return value
}
{
Value value
value = new Value
value.SetString(line)
return value
}