> ## 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.

# 自動修正スクリプト

> ABBYY FlexiCapture の自動修正スクリプトは field の値を変換し、field プロパティの データタブ で設定された、コンテキストに依存しない形式チェックを実行します。

<div id="what-it-does">
  ## このスクリプトでできること
</div>

このスクリプトでは、field値を変換し、コンテキストに依存しない形式チェックを実行できます。

このスクリプトは、fieldのプロパティダイアログの\[データ]タブで設定します。

<div id="parameters">
  ## パラメーター
</div>

| **名前** | **型**                                               | **アクセス**  | **説明**   |
| ------ | --------------------------------------------------- | --------- | -------- |
| Value  | [IValue](/ja/flexi-capture/appendix/scripts/ivalue) | 読み取り/書き込み | field の値 |

<Note>
  \[認識後に AutoCorrect を一度だけ適用する] オプションが選択されている場合、**IValue.ErrorMessage** で指定された書式エラーメッセージは、そのようなエラーは修正できないため、表示されません。
</Note>

このオプションが選択されていない場合、スクリプトは同じステージ内でも複数回実行されることがあります。

<Note>
  スクリプトは、Data Verification ステーションで field を確定したときに起動されます。
</Note>

スクリプトで [外部アセンブリ](/ja/flexi-capture/appendix/scripts/user-assembly) のクラスとメソッドを使用する場合は、Document Definition のプロパティの .NET References タブでアセンブリファイルをアタッチする必要があります。

<div id="see-also">
  ## 関連項目:
</div>

[入力値の処理](/ja/flexi-capture/templates/text-processing)
