[14 Dec 2006] redim tables

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

[14 Dec 2006] redim tables

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 14 Dec 2006 17:00:53 +0100

Hello, currently I am working with different files and reading that contents into a table. So when changing the file to read from I set the tablecontents to NULL. Afterwards the table is empty. So I thougth to do again

Dim table[n][n]

But when accessing the table again Hollywood says that the tablefield 0 is not initialised. What do I need to do to get access to the table again?
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[14 Dec 2006] Re: redim tables

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 14 Dec 2006 11:57:52 -0800 (PST)

It sounds like you are trying to access the table before you have new information in it. Or you might be accidentally setting the newly filled table to NULL by mistake?

BTW: Are you dumping the old table by using TABLE={} ?
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

[15 Dec 2006] Re: redim tables

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 15 Dec 2006 06:58:07 +0100

stupid me, looping at the table and giving the value "" to all fields is sufficient before refilling it.
Locked