Error 4123 Wait-For error

slurpy

New Member
This is my code. And the error in RED. What am i doing wrong here. Experts please help.


define temp-table tt
field tta as char
field ttb as char.

def var a as char.
def var b as char.

form a b with frame abcd.

on pf3 of frame abcd
do:
hide frame abcd.
for each tt:
disp tta ttb.
end.
end.
repeat:
a = "".
b = "".
update a b with frame abcd.

create tt.
assign tta = a
ttb = b.
end.
ERROR
None of the widgets used in the WAIT-FOR statement are in a state (such as
SENSITIVE) such that the specified event can occur. WAIT-FOR terminated. (4123)


All i want is the data to be displayed when F3 [pf3] function-key is pressed.

Please help.
 
There must be more code than you have shared. There is no WAIT-FOR in this sample. And for what it is worth the code ran without error when I tried it...

What version of Progress? What OS?

It is also quite helpful to put CODE tags around code samples. (In your posting start a code sample with "[" followed by "CODE" and "]". Then the code. End it with "[" plus "/CODE" and "]".
 
Progress version is 9.1E04.

I even tried the following in the above code.It gave the same error.

Code:
on pf3 of field a
   do:
        hide frame abcd.
        for each tt:
        disp tta ttb with frame gggg.
        end.
   end.

Can you please guide me as to what is the right WAIT-FOR command for the field.

or do you have any other simple logic to display the contents of a table when F3 Functional-key is pressed.

Thanks for your time.
 
No, I cannot guide you because I have no idea what you are doing wrong. There is no WAIT-FOR in any of the code you've shown so far and the original code "works". From where I'm sitting your error looks like a fantasy.

You're going to have to post the code that fails in order to get any help with.
 
Ok i fugured what i was doing wrong. I was using 'HIDE FRAME ABCD' in the code.

I just had to remove that and it worked.

Thanks for making me think. :biggrin:
 
Back
Top