CX_FORMULA_ATTRIBUTE::GetInputVarNames
Beschreibung:
Ruft CX_FORMULA::GetInputVarNames auf der zugrunde liegenden Formel auf.
Code-Beispiel:
// Create the formula attribute with formula: volume=width*height*depth Var(formulaAttribute, formula) CreateTransObject(CX_FORMULA_ATTRIBUTE) -> formulaAttribute CreateTransObject(CX_FORMULA) -> formula "width*height*depth" // = volume formula Put "volume" formulaAttribute Put(NameMA()) // which slot should be calculated? formula formulaAttribute Link(formula) // how should the slot's value be calculated? // Only 'depth' is returned as input variable because 'width' and 'height' are ambiguous // slot names and are stored as accesspaths NULL formulaAttribute Call(GetInputVarNames) // -> [ "depth" ]
Stack | Position | Objekttyp | Kurzbeschreibung |
---|---|---|---|
Stack(In) | Top | CX_FORMULA_ATTRIBUTE | Ein Formel Attribut |
Top-1 | CX_CONTAINER | Der Container, dem die Slots hinzugefügt werden sollen oder NULL | |
Stack(Out) | Top | VECTOR<STRING> | Die (internen) Namen der Slots, die an die Formel gebunden sind |