Ron,
First you need to import the messagebox txd into your dictionary. Let me know if you need my updated one.
Then run the MB import application Utilty
Add the global extension and
set to Use Threaded
check the use MB for All message types
MB with features
Automatically Log Messages
In Features, Set thet imeout for messages - I use a global variable here so I can change it to sit for a while for debugging.
Then in code, if there is an error I want to log, I just use message('Here is an error!')
Done- it goes to the log.
In my data.dll, if there is a situation like renumber or automatically increment fails and the default answer is button:yes to retry - this would cause the system to log the error and retry
So in the messagebox procedure, ds_messagebox, in the ThisMessageboxLogInit embedI put
if instring('RETRY?',upper(LMBD:MessageText),1,1)
LMBD:Defaults=BUTTON:NO
END
That sets the default to retrying things to NO automatically.
The timed response to a message is always the default.
HTH
chris