posted 18 years ago
No.
should be
So, what you're doing, is creating a new array of size size and assigning a reference to the myArray variable, which is declared to hold references to Project_Table[] objects. (Note that "Project_Table[]" is the type)
Also, note that creating an array does not create the objects in the array. So your line
will not work for a variety of reasons. First, there is no Project_ID method on result set. You probably want to use getString("Project_ID") or getString(1). Second, there is no object into which to put the value, since the element at that point in the array is null.
Also, since you don't know how many objects you are going to have, an array is probably not the best choice here in any case. Try a List:
Then, if you need it as an array, it is possible to convert the list to an array.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.