Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43971

Wiki Page: TestPartner: Why does a script containing undeclared variables fail to compile, when 'Require Variable Declaration' is enabled?

$
0
0
Why does a script containing undeclared variables fail to compile, when 'Require Variable Declaration' is enabled? Solution: Certain Visual Basic options can be set in TestPartner; including an option to require variable declarations in scripts. Enabling this option adds the Option Explicit statement to general declarations in any new script. If a script is created with this option disabled, and then enabled before opening the script; the Option Explicit statement will be inserted into that script. If variables were not pre-declared, then the script will not compile. This problem may occur in a shared database environment if one user has this option on, while another has it off. Work around this issue by ensuring all users in a shared database either have this option enabled or disabled. Old KB# 10614

Viewing all articles
Browse latest Browse all 43971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>