IDBStorage::GetData

The GetData method retrieves a row of data from the database, based on a specified key value.

Syntax

HRESULT GetData(
VARIANT vtReserved,// in
VARIANT vtKey// in
VARIANT *pvtRet// out
);

Parameters

vtReserved
Reserved for future use. GetData ignores any value stored in this parameter.
vtKey
A VARIANT that contains the key value on which to base the search. GetData searches for this value in the table column specified as the table key in the initial call to InitStorage.
pvtRet
A Dictionary or OrderForm that contains the retrieved row.

Include File

<commerce.h>

Return Values

Value Description
S_OK The function succeeded. If the function fails, GetData returns a failure HRESULT, and pvtRet evaluates to NULL.

Related Topic

IDBStorage::CommitData, IDBStorage::InsertData




© 1997-1998 Microsoft Corporation. All rights reserved.