Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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 -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/2a0e2c4773b6e85485256aff004dc132.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1