OpenAPI User Guide > OpenAPI User Guide > Accessing the Name Server > Name Server Query Syntax > How to Use ~V Marker in the Name Server Query Text
Was this helpful?
How to Use ~V Marker in the Name Server Query Text
You can use a ~V marker in any of the subfields of the objects (such as login, connection, or attribute) and in the Type field in the Name Server query text. The ~V marker must be preceded and followed by a space character. Values for the parameter markers are sent with the query using IIapi_setDescriptor() and IIapi_putParams(), in the same order as the parameter markers appear in the query text.
Example: Using the ~V marker in name server query text
The following query text is a valid query text with the ~V marker:
show server ~V
When sent with parameter value of “servers,” it is identical to the query:
show server servers
The advantage is that the query using ~V does not require the application to build the query text at runtime using values not available at compile time.
 
Last modified date: 04/03/2024