Formula: String;
The Formula property determines a formula of the term element.
Executing the example requires a form with the button named Button1 on the form and the TermEdit component named TermEdit1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
i: Integer;
Terms: ITermList;
Term: ITerm;
Begin
Terms := TermEdit1.Terms;
For i := 0 To Terms.Count - 1 Do
Term := Terms.Item(i);
Term.Text := "Term " + i.ToString;
Term.Formula := "Formula " + i.ToString;
End For;
End Sub Button1OnClick;
After executing the example, on clicking the button the text for each term consists of the word "Term", and the index of term element, and formula consists of the word "Formula" and the index of term element.
See also: