|
-
Jan 19th, 2007, 05:44 AM
#1
Re: [2005] Redim ??
 Originally Posted by Jigabyte
Hi,
Thanks for that, I can still use the redim in VS2005 so I define an array of 1 and then redim it once I have the record count.
Thanks again all,
Jiggy!
Non, no, no. Why create an array at all if you aren't going to use it? Just declare the variable without specifying an upper bound an no array will be created. You can then either use ReDim or, preferably, invoke an array constructor at a later time when you know how many elements you need.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|