Dim and ReDim 
Author Message
 Dim and ReDim

Quote:

>I dimension an array using Dim in the general declarations section of a form
>so it can be used throughout the form.  Then I want to ReDim it in a Sub
>within the form, but it won't let me.  Any ideas?

You have to declare it with no dimensions:

        Dim MyArray() as Integer.

JEFF



Fri, 11 Dec 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Dim and ReDim?

2. Dim and ReDim

3. dim and redim allocate memory?

4. Efficient use of strings (Dim, Redim, and all that)

5. ReDim a 2 dim. array

6. dim string to dim form

7. Newbie Question: Dim A() as String /Dim A as String()

8. Dim obj As New Class crt Dim Obj As Class = New Class

9. dynamically dim a variable ie dim "variable"&n

10. dim myObject as Object versus dim myObject as myProject.class1

11. dim myObject as Object versus dim myObject as myProject.class1

12. clarify understanding on redim statement with dynamic arrays

 

 
Powered by phpBB® Forum Software