Sep 24, 2003 #1 spazman Programmer May 29, 2001 500 CA Is is possible to check if a variables has been dim'ed, do i don't redim or dim it again and generate poage errors?
Is is possible to check if a variables has been dim'ed, do i don't redim or dim it again and generate poage errors?
Sep 24, 2003 #2 Shaggs Programmer Aug 26, 2003 25 AU probably not, but if your testing for an array you could use isarray(yourarray) returns a boolean. Upvote 0 Downvote
Sep 24, 2003 Thread starter #3 spazman Programmer May 29, 2001 500 CA not an array just a var, actually my dbconn Upvote 0 Downvote
Sep 25, 2003 1 #4 shaddow Programmer Mar 22, 2001 1,862 RO Ok if you have a Connection object you could check if the variable it's an object IsObject(dbcon) http://www.devguru.com/Technologies/vbscript/quickref/isobject.htmlalso you can check the other Is... functions http://www.devguru.com/Technologies/vbscript/quickref/functions.html ________ George, M Upvote 0 Downvote
Ok if you have a Connection object you could check if the variable it's an object IsObject(dbcon) http://www.devguru.com/Technologies/vbscript/quickref/isobject.htmlalso you can check the other Is... functions http://www.devguru.com/Technologies/vbscript/quickref/functions.html ________ George, M
Sep 25, 2003 #5 shaddow Programmer Mar 22, 2001 1,862 RO I forgot actually the function VarType, this should be more acurate http://www.devguru.com/Technologies/vbscript/quickref/vartype.html ________ George, M Upvote 0 Downvote
I forgot actually the function VarType, this should be more acurate http://www.devguru.com/Technologies/vbscript/quickref/vartype.html ________ George, M
Sep 25, 2003 Thread starter #6 spazman Programmer May 29, 2001 500 CA That did it! Thanks shaddow. Upvote 0 Downvote