main logo
Subject: Re: Problems with linked lists of records
Author: Erne
Posted: 2001/10/31 06:39:16
 
View Entire Thread
New Search


Hi Marcel,

>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:
>
>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?

Deal is inDatabase.htable is in the making and not exist yet
so you must do:

nextone = new VObjectPtr("h_nextone", nil, kV_SetNull)

and, after the Table is created, put this code somewhere like in:
htable = new hbase(self)
htable.nextone.SetTarget(htable, kV_SetNull)


Cool Runnings,
Erne.

| e r | Ernesto Giannotta
| n e | Musical Box - a media store

 
©2001 Erne
<-- Prior Message New Search Next Message -->