ITerm.Formula

Syntax

Formula: String;

Description

The Formula property determines a formula of the term element.

Example

Executing the example requires a form, a button named Button1 on it 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:

ITerm