company logo

Value functionality

A property handle provides value handle functionality for the instance currently selected in the property handle. Value handles allows reading or updating instance attributes or accessing instances in a subordinated property handle.

In order to get the value for an instance selected in a property handle, the property handle might be turned into a value handle by calling value() without attribute name.

void AccessAttributes ( Property &person ) {

  Value    name(person,"name");

  Value    pid(person,"pid");

  person.get(0);    // select first instance

  pid = "00000";    // change person id value to 00000

  name = "Miller"   // set person name to Miller

  printf("Person ID: %s",pid.toString());

  printf("All data: %s",pid.value().toString());

}