Hm, see this: --> If you use the Preserve keyword, you can resize only the last array dimension, and you can't change the number of dimensions at all. <--
>From VBScript documentation I've been interested in your question and I took a look at the SafeArray Win32 APIs again. And the reason for the above is obvious - there is API function for the last dimension only (right most dimension) but nothing else. Other actions must be made "manually" e.g. the guys that developed VBScript should write code to create new array and copy the elements from the original and not just call an existing function... Michael -----Original Message----- From: Thomas V. Nielsen [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 4:31 PM To: ActiveServerPages Subject: RE: Riddle me this.. (ReDim array) > The Preserve keyword is probably the culprit. You can't change the > number of dimensions when using this keyword. If you haven't already, > try: Hmm, I am begining to remember something about dynamic, vs. static arrays > dim arData() Is dynamic, and therefor you can do > redim arData(14,1) > redim preserve arData(14,max no of records) However, I am suspecting that getRows returns a static array.. <Thomas/> --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
