Refresh Problem



Hello and thanks in advance for the help.

I am having one of those problems which goes away when you try to observe
it.

I have a shared messaging application in which the data can be updated by
any user. The user must lock the message before updating and then unlock it
when they are finished. When they press the lock button, all other users
viewing the message should have their title bar changed to read "LOCKED BY
USERX". When the user unlocks the message the title bar should say
"UNLOCKED".

The changing title bar works eratically and the problem seem to be with the
call to loWindow.refresh.

If I put in a debugging statement such as:

=MESSAGEBOX("Content.RWUser is " + ALLTRIM(content.rwuser))

right before loWindow.refresh,

It works every single time and as soon as I close the messagebox, the
refresh does what it is supposed to do.

If I take out the MESSAGEBOX statement it won't always refresh the window.

Does anyone have any ideas about why refresh would behave eratically at
times?

Thanks,
Jeff


.