PreviousDTI Programmer's Guide (v10) Next

PvGetTableStat()

Chapter contents

Returns statistical information on a given table.

Header file: DDF.H
Requires: W3DBAV90.DLL or higher version

Syntax

PRESULT DDFAPICALLTYPE PvGetTableStat( 
	BTI_WORD              dbHandle, 
	const BTI_CHAR*       tableName, 
	TABLESTAT*            tableStat); 

Arguments

In
dbHandle
Handle of an open database returned by PvOpenDatabase().
In
tableName
Table name for which you want statistical information.
Out
tableStat
TABLESTAT structure containing table statistics information.

Return Values

PCM_Success
The operation was successful.
PCM_errFailed
The operation was not successful.
PCM_errMemoryAllocation
An error occurred during memory allocation.
PCM_errInvalidDictionaryHandle
The specified dictionary handle obtained by PvOpenDictionary() or PvOpenDatabase() is invalid.
PCM_errTableNotFound
The specified table was not found.

Remarks

You must first obtain a database handle using PvOpenDatabase().

You can retrieve more information about a specific table using PvGetTable().

See Also

PvCloseDatabase()
PvFreeTable()
PvFreeTableNames()
PvGetTable()
PvGetTableStat2()
PvOpenDatabase()
PvStart()
PvStop()


Chapter contents
Book contents

Prev topic: PvGetTableNames()
Next topic: PvGetTableStat2()