OnLoad  Array

The OnLoad event is called for each item when an array file is loading.

Syntax

Pointer Array.OnLoad(
     Integer index,
     String line)

Parameters

indexIndex of the new item.
lineLine 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
}
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia