2013-10-09 13 views
13

MS-Access 2010で作業しており、ブレークポイントに達したVBAコードで定義されている変数を表示しようとしています。ウォッチウィンドウの問題ウォッチウィンドウの値のテキストボックスにはサイズが設定されています。つまり、値が長すぎるとウォッチウィンドウで値が切り捨てられる場合MS-Accessデバッグウォッチ値の長さが制限されています

内部全体の値を表示する方法私の変数?

+5

ダイレクトウィンドウで 'Debug.Print variable_name_here'を使ってみましたか? – Grant

+4

または単に即時ウィンドウの '?variablename' – Santosh

答えて

18

これには中間ウィンドウを使用することをお勧めします。私は頻繁にこの理由でSQLクエリでこれを行います。

これを表示するには、「表示 - >中間ウィンドウ」(またはCtrl + G)を使用します。

debug.print "This is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long stringThis is a really long string" 

そして、あなたが選択してコピー/ペースト中間窓の外または全部の変数を見るためにスクロールすることができます:

すると、次のような構文を使用します。

中間ウィンドウは自動的にクリアされませんが、必要に応じてすべてを選択して削除することができます。

関連する問題