vbscript - Cannot convert Group Description to String Variable -


i have following code:

set objholdgroup = getobject("ldap://" & objgroup) strgroupdesc = (objholdgroup.description) wscript.echo(strgroupdesc) 

the variable strgroupdesc returns nothing when echoed. can output description directly need further processing. thoughts?

explanation: apparently script sets option explicit (good), didn't tell (bad). option makes defining variables before can use them mandatory (good). raise "undefined variable" error, though. since doesn't seem happen code, seem have on error resume next somewhere in code (very bad), which, again, chose keep quiet (bad).

next time please don't omit parts of code vital troubleshooting problem. , don't use on error resume next.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -