contents   index   previous   next



inteface: SEGetByIndexCallback

 

   public boolean getByIndex(SEContext se,int index);

 

This callback is used to get an object member's value by index. This will be used solely by the ScriptEase API when a programmer is trying to iterate the members of your dynamic object. There is no hint as there is no way to know how the programmer intends to use the retrieved value. Return false if you have no such indexed member.

 

In order to implement this routine correctly, you need to internally order the members of your dynamic object in a consistent way. A person will be using this routine to iterate all of your members, from 0 on up. You must return each member once only and always in the same index. It is only permissible to reorganize the members if a member is added or removed. Return the member in the SE.RETURN object.

 


interface: SEGetNameByIndexCallback