Can Get_Status be trusted? (OpenInsight Specific)
At 09 NOV 2001 09:09:17AM Oystein Reigem wrote:
I have the following statements in my programming:
Set_Status(0) RetVal=Dialog_Box( "MY_DIALOG", @Window, InitParam ) if Get_Status(StatusCode) then ...error handling...I just got Get_Status returning
false$as if everything was OK, while at the same time StatusCode was set to
"Window already exists" : @VM : "MY_DIALOG"This happened during debugging so perhaps I should be forgiving. Also I feel uncertain who was right - Get_Status or StatusCode. But I do want to know if Get_Status can be trusted under normal circumstances. Or if there is anything special one must do to be 100% certain. Like check its StatusCode parameter in additioned to the returned value. Or initialize StatusCode before Get_Status is called.
- Oystein -