Jump to content

Newbiee here VBS abilities?


Recommended Posts

ok so im fairly new to autoit creating a xml>mysql funtion

here is some example code i gleamed off of a search

$q = _Query($sql, "SELECT * FROM TestCase")
With $q
While NOT .EOF
FileWriteLine("c:\test.txt",.Fields("location").value & " - " & .Fields("location").ActualSize & " - " & .Fields("location").Value & @CRLF)
.MoveNext
WEnd
Endwith

Question is, i do not understand the OO properties of FileWriteLine i.e .Fields,.value

and i can not find any docs that explain it

Thanks

RB

Link to comment
Share on other sites

Do you mean you didn't understand "With $q"? Each of those references is interpreted as $q.Fileds("location").value, etc., because of the "With". Look at With/EndWith in the AutoIt help file.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...