Thats a good resource link freddy888. That's more info than I currently have. I remember a more official one though. I'm sure somebody whose been hear awhile probably has one of Hal's scripting resource files. It is set up like one of those older official windows help files. I had one once but I lost it. That was back before I learned any scripting.
You know what a Class means in Vbscript.. where fso.openTextFile() ...fso is a class. You can have several functions and subs in a class.
Like:
Class Mbase
Sub openfile()
Bla bla bla
End Sub
Function Begin()
bla bla bla
End Function
End Class
What's special about a class is that instead of just calling a Sub or a function All you need to do is call a class (Set MB = New MBase)
and then it creates a system object reference with its own methods and properties (each one refering to a specific function of Sub)
FSO is a class
OpenTextFile is a Method
Instead of running a special Sub-routine to open a text file all that is needed is FSO.OpenTextFile.
I'm not sure if Hal will let me create or use a Class... I also have problems with Subs and Funtions as well, not to mention I don't think Hal likes Do While loops either.
+++++++++++++++++++
I've been learning more about how to connect to Databases. It seems to be going well. I also have an idea that would require connecting an outside database to Hal. However, that doesn't seem to going anywhere. I think its because it uses Do Loops to cycle through data.
I want you Dude to look into that...I was trying to get it working when I mentioned about the Class the other day. Here is what I'm refering to.
http://www.savefile.com/files/2064417In this zip you'll find two attempts at making a pluggin, one working vbscript, a database file which the scripts a refering to, and an application that can view and change values, colemns an Tables in any msi database. You agian have to change the MyMB and the MysPath in the scripts to point to the Database and database dir.
I was just seeing if I could cross refernce the Pupose of an bject with an Object.
Like : User says; Hal, what can you eat?
Hal; I can eat pickles.
(because pickles are eatable)
User says; Hal, What can you throw?
Hal; I can throw balls.
(because balls are throwable)
It is a property of most balls that they can be thown, and a property of bananas, pickles, and T-bone steak that they can be eaten.
Other types of questions can be added as well, and cross referenced between like questions and multiple simular properties (like to throw is a common funtion amoung balls, as well as, rocks and the occational shoe).
Look at it and see what you can do. I can supply any information or ideas if you want. Hal sometimes taxes my mind's frustation level pretty good.[B)]