Page 1 of 1

[14 Dec 2006] redim tables

Posted: Sat Jun 13, 2020 5:31 pm
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?

[14 Dec 2006] Re: redim tables

Posted: Sat Jun 13, 2020 5:31 pm
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={} ?

[15 Dec 2006] Re: redim tables

Posted: Sat Jun 13, 2020 5:31 pm
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.