ltannous
23rd September 2004, 18:56
I added a form variable that will add a color box if a certain value is less than 1.
This works, but when I open the session now, i get an error :Fatal error :object 0 in process 98 not found.
The sesison still opens with the proper box color appearing.
Any suggestions??
maxime
24th September 2004, 06:56
Hi,
Can you send me the eventlogs/logfiles?
Maxime
ltannous
26th September 2004, 06:41
what logi is created when this happens??
maxime
28th September 2004, 06:50
Please check the log.bshell files.
Maxime.
ltannous
28th September 2004, 23:08
The only error message i see is in the BW error mesage:
Fatal error : object 0 in process not found....
I tried debugging it, and found the message appears when i get to update.ojbect(frame.id)
This is the portion of script causing the issue.
field.wqan9:
before.display:
refresh()
wqan9 = 0
refresh()
wqan9 = wqan1+wqan2+wqan3+wqan4+wqan5+wqan6+wqan7+wqan8
val1 = wqan9
if val1 < 1
then color = RGB.RED
else
color = RGB.GREEN
endif
change.frame()
functions:
function create.frame()
{
frame.id = create.object(DsCgwindow, current.mwindow(),
DsNx, 950, DsNy, 44,
DsNwidth, 12, DsNheight, 12,
DsNbackground, color)
update.object(frame.id)
}
function change.frame()
{
change.object(frame.id,
DsNbackground, color)
update.object(frame.id)
}
mark_h
28th September 2004, 23:33
Where do you run create.frame? Just wondering if at startup this is not being run and the frame.id is not created.
Mark
ltannous
29th September 2004, 16:38
I had the following sequence:
form.1:
init.form:
get.screen.defaults()
refresh()
create.frame()
I commented out the get.screen.defaults() and refresh, and now it works fine.
Thanks for leading me down the right path.
günther
18th November 2004, 15:24
...DsNx, 950, DsNy, 44, ...
I'm currently also playing with graphics on my forms. I figuered out my X and Y positions which was not too difficult. But then I found at least one user that runs bw with something like
-- -set FONT="Times" -set FONTHEIGHT=19 -set FONTWIDTH=130
and therefore the positions are different. And now it's a bit more tricky. Any solutions welcome!
Günther