Jump to content
Sign in to follow this  

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)

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



Share this post

Link to post
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

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