GetHostVariableTypes()


" "

short GetHostVariableTypes(long QueryID, VARIANT* Types)

Description

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

Parameters

Name Description
QueryID The ID of the query, as returned from InitializeStaticQuery().
Types 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()