halvorn
26th February 2002, 14:06
I found a sample from the Baan help that maybe is meant for creating a List box, but I'm not sure.

When I'm using the sample below, I get the following Fatal error:

Fatal Error: Object 0 in process 84 not found

Sample
long listboxitem1,listboxitem2,listboxitem3,listboxitem4,combox,motif.blue,toplevel

form.1:
init.form:

|toplevel=Current.display() *My 3 attempts to avoid the error
|toplevel=parent
|toplevel=pid

combox = create.object(DsCdDComBox, toplevel,
DsNbackground, motif.blue,
DsNforeground, RGB.WHITE,
DsNminWidth, 80,
DsNborderColor, RGB.WHITE,
DsNborderWidth, 2,
DsNmaxWindowSize, 25,
DsNspace, 2,
DsNx, 80,
DsNy, 40,
DsNstring, "Combox" )

change.object(combox,
DsNeditable, FALSE)

listboxitem1 = create.sub.object(combox, DsClistBoxItem,
DsNstring, "article1" )

listboxitem2 = create.sub.object(combox, DsClistBoxItem,
DsNstring, "article2" )

listboxitem3 = create.sub.object(combox, DsClistBoxItem,
DsNstring, "article3" )

listboxitem4 = create.sub.object(combox, DsClistBoxItem,
DsNstring, "article4" )

~Vamsi
26th February 2002, 19:27
This is the more complex method that Steve Auckly was alluding to here (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=1160)

mark_h
26th February 2002, 20:30
From reading Steve's reply, and looking at your code, it appears you are trying to apply a 3gl solution in a 4gl program. Maybe that is what is causing your error. Not sure, I have never tried what you are attempting. I hope you find a good solution and post it here.

Mark

mark_h
26th February 2002, 20:59
I have attached a 3gl script that uses what you are talking about. It works - at least on our Baan 4c3 system. I did have to comment out and change a few lines. Looks to complicated for me, but it was kind of cool to see.

Mark