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" )
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" )