Helma logo
helma.org » Home > Stories > HopObject.get()

HopObject.get()

Retrieves a property or a subnode of a HopObject.

Syntax
HopObject.get(Number)
HopObject.get(String)

The type of the result depends on the type of the submitted argument: a number will retrieve the subnode of the HopObject at the corresponding index position, a string the corresponding property of the HopObject.

Finally, a number as string retrieves the subnode with the corresponding Hop ID.

Example
root.get(0);
HopObject author
root.get(1);
HopObject story

root.get("date");
Wed Oct 18 02:01:41 GMT+01:00 1971
root.get("title");
The Nudist On The Late Shift

root.get("1");
HopObject author


... comment


Page last modified on 2002-07-16 13:29 by tobi