I am currently developing an Database app and wanted to set up a class/module that has a bunch of methods that build arrays full of parameter values..
should though i use a module, or a class?
A method would look something like this.
Now, the class I have written allows a person to enter a dynamic number of parameters and thier values to match any stored procedure in the system. If I took it a step further and gave the option of calling pre canned arraylist builders..that would just lesson the code that has to be placed in forms etc...
I suppose it should be a class that i can just build into my inheritence structure..
why then use modules? are they faster? can only a module be built into an dll? i never had the chance to ask my vb teacher in college...
should though i use a module, or a class?
A method would look something like this.
Visual Basic:
Public Sub BldSPAddCustomer()
With arrParam ' this is an arraylist property in a class for now
.add("@cname")
.add("@addr")
'etc
End With
End Sub
I suppose it should be a class that i can just build into my inheritence structure..
why then use modules? are they faster? can only a module be built into an dll? i never had the chance to ask my vb teacher in college...