on 10/31/01 10:33, Marcel at marcel AT dailystar DOT com.lb wrote:
> Hi all, > > I'm working on a project in which I need to implement a linked list of > records. I now doubt that the way I'm doing this is the right one. The only > problem I have is that all those records belong to the same table. I'm > declaring the table like this:
Hi Mercel,
you need table with self recursion., There is such examples in V4RB archive, check it.
> Sub hbase (inDatabase as theDatabase) > ... > nextone = new VObjectPtr("h_nextone", inDatabase.htable, kV_SetNull) > End Sub > > Of course, in my database definition, I also have > htable = new hbase(self) > > What am I doing wrong? > I could use a ULong field instead of the VObjectPtr but I guess I would > loose some facilities. > > Talking about facilities, I have another question: if I have these linked > records from the same table and I know the first one in a chain of records, > how can I get all of them sequentially in a cursor??
-- Best regards, Ruslan Zasukhin
------------------------- Paradigma.
e-mail: ruslan@paradigmasoft.com web : http://www.paradigmasoft.com
To subscribe to the Valentina mail list send a letter to valentina-on AT lists DOT macserve.net ©2001 Ruslan Zasukhin |