|
-
Aug 18th, 2002, 04:34 PM
#1
Thread Starter
Lively Member
Exiting Function???
I'm currently writing a program, and I noticed a few strange things.
I went into debug mode and noticed that this statement:
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
Would exit the current function, and I have no clue why. I'm positive it is that statement as well.
(Note: glo.CounterVal = 2)
Any ideas why that would cause the problem to exit the function? Thanks, and feel free to ask any questions about the function.
-
Aug 18th, 2002, 04:42 PM
#2
Frenzied Member
When I was sleeping that day... someone whispered me "You can only Redim the last dimension of the Multidimensional Array while still preserving the Older values"
Maybe this is the problem??
-
Aug 18th, 2002, 04:47 PM
#3
Thread Starter
Lively Member
Although I am preserving the older values.
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
Perhaps I'm misunderstanding something?
-
Aug 18th, 2002, 04:54 PM
#4
Frenzied Member
You can only Redim the last dimension of a multidimensional array
ReDim Preserve X(2,5)
'Also when redimming with Preserve do not use Lower bounds
-
Aug 18th, 2002, 05:29 PM
#5
Thread Starter
Lively Member
Thank god, this would be pretty simple to fix.
ReDim Preserve glo.Links(1 To glo.CounterVal, 1 To 3)
all I need to do is change to this:
ReDim Preserve glo.Links(1 To 3, 1 To glo.CounterVal)
Thanks for your help, I appreciate it .
-
Aug 19th, 2002, 05:01 AM
#6
Frenzied Member
Don't mention it.. My Pleasure!
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
|