Afternoon all,
I want to declare an array to hold a varying amount of strings which is dependant on results in a recordset. The problem is that I want the array to be global so I can pass the contents onto other procedures yet I will only know how many elements I need at runtime. If I redim the var in the procedure which executes the sql I can set the number of elements by querying my recordsets recordcount, however, the contents will obviously only exist in the array whilst this procedure is being run - ie. as soon as I move into the next procedure the contents of the array will be erased.
How do I get around this? Any ideas?
Cheers
cjac
I want to declare an array to hold a varying amount of strings which is dependant on results in a recordset. The problem is that I want the array to be global so I can pass the contents onto other procedures yet I will only know how many elements I need at runtime. If I redim the var in the procedure which executes the sql I can set the number of elements by querying my recordsets recordcount, however, the contents will obviously only exist in the array whilst this procedure is being run - ie. as soon as I move into the next procedure the contents of the array will be erased.
How do I get around this? Any ideas?
Cheers
cjac