What errors?[/quiote]
In the main block, I do :
Find DossTask where ...
if avail DossTask then
run deadline. /*this is the procedure*/
assign MyVar = DossTask.MyField.
The occurs occurs here, after the procedure and the message is that there isn't any record of DossTask available.
It will if you create a buffer for it like your first post, or
Code:
define buffer DossTask for Dosstask.
I do that now in my procedure.
Once you have created the buffer, you have to fill it using a find - it is a placeholder for a record, not a copy of an existing record.
It sounds like this is to do with record scoping - it can be confusing, but there is a lot of info out there (manuals, knowledgebase, peg, etc.) if you search on 'scope'.
Oh ok, I have to fill the buffer, I didn't know that. I thought it was a copy of the table.
Thanks a lot, I'll try this.
Griftou.
P.S.: For information, I'm using (at work) progress V9 and not OpenEdge.