Quote Originally Posted by kleinma View Post
well flag can mean a few things. In this case it is really just a switch like on or off.

Code:
'THIS SHOULD BE DECLARED AT THE CLASS LEVEL
Dim myFlag as boolean = false


'THIS WOULD BE IN YOUR DOCUMENTCOMPLETED ROUTINE
If myFlag = False then
    myFlag = True
    'REFRESH FRAME HERE
end if
see, so the flag here ensures the code to refresh the frame only happens once, because you set the flag to true the first time you refresh, so when the routine fires again, it will skip the code since the flag is now true.
nice one thanks mate i got a bit of code like that out of one of my books

thnx for all your help added to your rep