NamedValueAdd - cWebObject

Adds or replaces a name and value to a tNameValuePair array that is part of tWebNavigateData during forward navigation in a mobile web application (drilldown interface)

Type: Function

Return Data Type: tNameValuePair

Parameters: tNameValuePair[] Data String sName String sValue

ParameterDescription
DataAn array of tNameValuePair data that will be searched. Usually the tWebNavigateData.NamedValue member.
sNameThe name that will be searched for.
sValueThe value that will be added for this name.


Return Value

Returns an array of tNameValuePair data with the updated name/value data.


Syntax
Function NamedValueAdd tNameValuePair[] Data String sName String sValue Returns tNameValuePair[]

Call: Get NamedValueAdd Data sName sValue to tNameValuePairArrayVariable


Description

NamedValueAdd adds a name and value to a tNameValuePair array during navigation in a mobile web application (drilldown interface).

If the name does not yet exist in the array, the name/value pair will be added as a new array element. If the name exists, the value will be updated. The name search is case insensitive.

Procedure OnGetNavigateForwardData tWebNavigateData ByRef NavigateData Handle hoToView
    Get NamedValueAdd NavigateData.NamedValues "Header" "New Order" to NavigateData.NamedValues
End_Procedure

See Also

NamedValueGet | NamedValueIndex | NamedValueRemove | OnGetNavigateForwardData | tWebNavigateData.tNameValuePair