RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLParams.AssignStrings Method

Assigns values to the parameters from a list of name/value pairs.

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

Use AssignStrings to update the values of the parameters in the Items list to match the values in the list specified by Value. For each string in Value of the form Name=Value, AssignStrings locates the parameter (if any) that has the same name as the name portion of the string. It then assigns the Value portion of the string as the parameter's value. 

AssignStrings makes it very convenient to assign parameter values that are received as the content of a request message. In particular, TSubmitQueryButton generates an HTML control that sends the values in an HTML query form to the Web application. If the query form displays parameter values that should be sent to a provider on the application server, you can call AssignStrings with the ContentFields property of that Web request message. 

 

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