RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomQueryForm.AssignStrings Method

Assigns values to display controls from a list of name/value pairs.

Pascal
procedure AssignStrings(Value: TStrings);
C++
__fastcall AssignStrings(TStrings Value);

Use AssignStrings to initialize the values displayed by the controls in the query form. For each display control named in the specified list of strings, AssignStrings initializes its Text property with the associated value. 

Value is a list of strings with the form Name=Value. The Name portion identifies the Web item for a display control that is listed in the WebComponents property list or is a child of one of those Web items. Name must match the string returned by the component's GetHTMLControlName method. The Value portion of the string specifies the value that is assigned to the Web item's Text property.

Note: AssignStrings is a convenient way to initialize the values in a query form before the HTML document is sent to a Web browser. When the browser returns values that are entered by the end user, the Web server application must extract them from the request message's ContentFields property.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!