Declaring tables

D

Dave Neve

Hi

I'm trying to understand 'tables' and I've grasped that they have to be
declared as with the following code.

Dim MyArray(10, 10) As Integer

But I'm at a loss how to link the code to the table.The table isn't
generated with this
code and so I assume that I have to generate it myself (with code).
How does the code identify the table. Is it enough just to name the table
'MyArray'?
Or are these 'phantom' tables that can be used without being seen?

Hope this makes sense and thanks
 
D

Doug Robbins - Word MVP

Hi Dave,

It might be easier to give you advice if you can tells us what you are
starting with, and what you want to accomplish.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
D

Dave Neve

Hi Doug

I wasn't trying to accomplish anything. I was just reading through the help
pages in Word.

Regards
 
P

Peter Hewett

Hi Dave Neve

Your code is declaring a two dimensional array. If by table, you mean a Word
table object then array and tables have nothing in common. Arrays can be multi
dimensional as in "Dim lngArray(10, 10, 10, 10)" As Long and of any type. Word
table are 2 dimensional and object based.

HTH + Cheers - Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top