I am looking over some code that another programmer made where he calls a stored procedure. Before calling it, he creates an Array with the parameters needed for the stored procedure to query the table. He creates the array like this:
param = Array("@Name", 3, 8, "Tom", _
"@Age", 3, 8, 28, _
"@City", 100, 200, "Toronto)
The stored procedure uses @Name, @Age and @City to query the table.
My question is, what are the numbers in between for?
It looks like:
@Name = parameter name
3 = adInteger
8 = length
“Tom” = value
@Age= parameter name
3 = adInteger
8 = length
28 = value
@City= parameter name
100 = length
200 = adVarChar
“Toronto = value
Here is a list for the other ADO Data Types –
http://www.w3schools.com/ado/ado_datatypes.asp