> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DataSetTableRecords オブジェクトの LookUp メソッド

このメソッドは、データセットを検索した結果を返します。検索文字列には、レコードの任意の情報を含めることができます。

## 構文

```vb Visual Basic .NET theme={null}
Function LookUp(Query As String) As DataSetTableRecords
```

```cpp C++ theme={null}
HRESULT LookUp(
  BSTR                   Query,
  IDataSetTableRecords** Result
);
```

## パラメーター

**Query**

\[in] 検索文字列。

**Result**

\[out, retval] 見つかったレコードを含む出力 [**DataSetTableRecords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords.md) オブジェクトのインターフェースポインターを受け取る **IDataSetTableRecords**\* ポインター変数へのポインター。このオブジェクトに対しては、[**DeleteAll**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteall.md)、[**DeleteAt**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteat.md)、[**Commit**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords-commit.md)、[**LookUp**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords-lookup.md)、[**AddNew**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords-addnew.md)、[**UpdateFromDB**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords-updatefromdb.md) メソッドを呼び出すことはできません。使用できるのは [**Count**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/count.md) プロパティ、[**Element**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/element.md) プロパティ、および [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) メソッドのみです。これらを使用して検索結果を順に処理し、検索リクエストに一致するレコードを取得または編集できます。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## サンプル

このメソッドは、次のコード サンプルで使用されています：[請求書の処理と学習](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining)

## 関連項目

[**DataSetTableRecords**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/datasettablerecords.md)
