Please any one tell me how to create array which has the size that is based
on a value of a variable.

cODe:

Dim x
x=4
Dim myArr(x)

Does not work and asks for literal variable in the array size specification.