2013-10-09 7 views
13

मैं एमएस-एक्सेस 2010 में काम कर रहा हूं और मैं वीबीए कोड में परिभाषित एक चर को देखने की कोशिश कर रहा हूं जहां उसने ब्रेक-पॉइंट मारा है। वॉच विंडो में समस्या टेक्स्ट विंडो में वैल्यू टेक्स्ट बॉक्स में एक सेट आकार होता है, दूसरे शब्दों में यदि मूल्य लंबे समय तक है, तो घड़ियां विंडोएमएस-एक्सेस डीबग वॉच वैल्यू लम्बाई सीमित है

मैं मूल्य के अंदर पूरे मूल्य को कैसे देख सकता हूं मेरा चर?

+5

क्या आपने तत्काल विंडो में 'Debug.Print variable_name_here' का उपयोग करने का प्रयास किया है? तत्काल विंडो पर – Grant

+4

या बस '? Variablename'। – Santosh

उत्तर

18

इसके लिए मध्यवर्ती विंडो का उपयोग करना सबसे अच्छा है। मैं अक्सर इस कारण से SQL क्वेरी के साथ ऐसा करता हूं।

इसे दिखाने के लिए, "देखें -> इंटरमीडिएट विंडो" (या नियंत्रण + जी) का उपयोग करें।

तो निम्नलिखित की तरह सिंटैक्स का उपयोग करें:

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" 

और आप का चयन करें और पेस्ट कॉपी/मध्यवर्ती खिड़की से बाहर या पूरे चर देखने के लिए स्क्रॉल कर सकते हैं।

ध्यान दें कि इंटरमीडिएट विंडो स्वचालित रूप से साफ़ नहीं होती है लेकिन आप जब भी चाहें सब कुछ चुन सकते हैं और इसे हटा सकते हैं।

संबंधित मुद्दे