 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Aug 29, 2002 5:38 am
Access Class Variables |
I am tyring to migrate variables that I have in zMud to an Access (ADO) database. To do so I would like to know if it's possible to programmatically get a list of all the variables. for a given class. If it makes a difference they are all database variables.
As a corollary to that, I would like to know if it's faster to use and access a recordset or if it's better to work with database variables.
I'm sorry if this is a repeat question, but I couldn't find anything when I searched the help.
Asati di tempari! |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Aug 29, 2002 12:45 pm |
Well, my guess is that using zMUD variables is faster, but I don't have the tests to back that up.
Anyway, to do what you want, you can access the variables using the zMUD COM server. First, you need to find out how many variables you have and then use that to loop through all of them:
#LOOP %eval(%session.NumVars - 1) {stuff}
You can then access each variable inside the loop using:
%session.VarNum(%i)
This will return a MUDVar object. This object has properties for reading the value of the variable and finding out to what class it belongs, among others. For more info, look at zMUD COM Server in the Support Library.
Kjata |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|