GetHostVariableTypeNames()


" "

short GetHostVariableTypeNames(long QueryID, VARIANT* TypeNames)

Description

This function returns an array of strings that describe the data types of all host variables referenced in the specified query. The query should be a static query referencing host variables that have either been stored with the QMF query or created by AddHostVariable() or AddDecimalHostVariable().

Parameters

Name Description
QueryID The ID of the query, as returned from InitializeQuery().
TypeNames A pointer to a VARIANT in which you want to store the result array.

Return Value

The return value will be zero, if successful and non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString() to get additional error information.

Related Tasks

AddDecimalHostVariable()
AddHostVariable()
GetHostVariableNames()
GetHostVariableTypes()
InitializeStaticQuery()