For PowerBuilder .NET targets, the PowerScript language allows you to declare an unbounded array at design time, and to dynamically create the array bounds at runtime.
PowerScript lets you specify array bounds for one-dimensional or multidimensional unbounded arrays. The array bounds are created at runtime.
int arr[] //one-dimensional unbounded integer array arr = create int[2 to 5]
int arr[,] //two-dimensional unbounded integer array arr = create int[4, 2 to 5]
Although you can set runtime bounds for unbounded arrays, you cannot reset design-time array bounds at runtime. For example, this code produces an error:
int a[3] a = create int[5] //ERROR