Jump to content
Sign in to follow this  

Translate Vb To Autoit?

Recommended Posts


i can's get the translation here;

i have the connection, but not sur of translation; attached to ADODB

set rs = adodbConn.execute("EXEC sp_tables")

do while not rs.eof

if rs("table_type") = "TABLE" then

Response.Write rs("table_name") & "<br>"

end if




$quer = $connectionobj.execute("EXEC sp_tables")

Can anyone please translate?

Thanks, randall

Share this post

Link to post
Share on other sites


I'd still be interested to know how to translate;

but found the alternative method works;

func _GetTableNames($connectionobj,$i_adoMDB=1,$USRName="",$PWD="")

dim $ret[1]if isobj($connectionobj) Then

$adoxConn = ObjCreate("ADOX.Catalog")

$adoxConn.activeConnection = $connectionobj

for $table in $adoxConn.tables

if $table.type="TABLE" then

ReDim $ret[uBound($ret, 1) + 1]

$ret[uBound($ret, 1) - 1] = $table.name



$adoxConn = ""


return $ret

EndFunc ;==>_GetTableNames

Best, Randall

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...