Group: Forum Members
Posts: 436,
Visits: 944
|
Consider this code...
If a = True Then
'add sqlparameter to parameter array
End If
If b = True Then
'add sqlparameter to parameter array
End If
If c = True Then
'add sqlparameter to parameter array
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?
|