I need to base a variable array using a variable. For example,
ReDim pstrDepSSN(pint RecordCount) as string
The only way to do this is with the ReDim statement but it doesn't permit me to declare the variables as Static so that they hold their values. And if I declare the variables as Static like this
Static pstrDepSSN(pint RecordCount) as string
then I'm not using ReDim so it requires a constant expression rather than the variable pintRecordCount to be used in the parentheses. Does anyone know of a fix or a way to declare Static Dynamic Variable Arrays?
Appreciate any help. Thank you,
Keriana30
					ReDim pstrDepSSN(pint RecordCount) as string
The only way to do this is with the ReDim statement but it doesn't permit me to declare the variables as Static so that they hold their values. And if I declare the variables as Static like this
Static pstrDepSSN(pint RecordCount) as string
then I'm not using ReDim so it requires a constant expression rather than the variable pintRecordCount to be used in the parentheses. Does anyone know of a fix or a way to declare Static Dynamic Variable Arrays?
Appreciate any help. Thank you,
Keriana30
Comment