sqlsamurai
Programmer
Consider this code...
Each time this code runs the parameter array could change sizes... The first time it could contain only one parameter... the second time it runs it could contain three parameters.
How do i define the parameter array when i dont know how many dimensions I'll need, and how do I add parameters to the array?
Code:
If a = True Then
[green]'add sqlparameter to parameter array[/green]
End If
If b = True Then
[green]'add sqlparameter to parameter array[/green]
End If
If c = True Then
[green]'add sqlparameter to parameter array[/green]
End If
Each time this code runs the parameter array could change sizes... The first time it could contain only one parameter... the second time it runs it could contain three parameters.
How do i define the parameter array when i dont know how many dimensions I'll need, and how do I add parameters to the array?