Jump to content

Translate Vb To Autoit?


Recommended Posts

Hi,

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

rs.movenext

loop

Tried;

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

Can anyone please translate?

Thanks, randall

Link to comment
Share on other sites

Hi,

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

endif

next

$adoxConn = ""

endif

return $ret

EndFunc ;==>_GetTableNames

Best, Randall
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...