[25 Jul 2009] tabledimension

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[25 Jul 2009] tabledimension

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on 25 Jul 2009 18:12:22 +0100

Hello all,

I would like to know how to get the dimension of a table. This goes especially for the rows of a table. Is there a way to inspect the borders of a table without running into an error when going beyond the border of a table?

Regards GMKai
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[25 Jul 2009] Re: tabledimension

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 25 Jul 2009 21:58:42 -0000

I might be misunderstanding the question, but couldn't you use ListItems() for this?
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[31 Jul 2009] Re: tabledimension

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on 31 Jul 2009 22:00:14 +0100

Hallo rev,

this does work for one-dimensional tables. But how can one count two dimensional tables?
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[31 Jul 2009] Re: tabledimension

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 31 Jul 2009 21:18:26 -0000

You can also use ListItems() to get your second dimension. Try the following:

Code: Select all

Dim TestTable$[10][7]; creates your 2 dimensional table (10x7)
For x=0 To ListItems(TestTable$)-1 Do DebugPrint(ListItems(TestTable$[x]))
(This will print 7 ten times.)

Please forgive me if I'm still misunderstanding.
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[01 Aug 2009] Re: tabledimension

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on 01 Aug 2009 17:18:57 +0100

silly me, it was sufficient to call ListItems(t_table)...
Locked