Lines: IStringList;
The Lines property determines the collection of lines displayed in the component.
Executing the example requires that the repository contains a web form and the TextArea component named TextArea1 on the form. The specified procedure is set as a handler of the OnShow event for the web form.
Sub TESTWebFormOnShow;
Var
Lines: IStringList;
Begin
Lines := New StringList.Create;
Lines.Add("Russia, or Russian Federation (abbr. RF) — a state in the Eastern Europe and Northern Asia.");
Lines.Add("Russia is the largest state in the world, its area in internationally accepted borders is 17 098 246 square kilometers.");
Lines.Add("The capital of Russia is Moscow. The official language along the entire country territory is Russian, some regions of Russia have their own official languages.");
Lines.Add("Currency of Russia is Russian ruble.");
TextArea1.Lines := Lines;
End Sub TESTWebFormOnShow;
When the web form is started, the set of displayed lines is specified for TextArea1 the component.
See also: