Hi,

although i think I understand why this is happening what way would I need to go ?

  Dim myText As String
  Dim myLeft,myTop,myWidth,myHeight As Integer

  if App.CurrentWindow <> Nil then
    myLeft = App.CurrentWindow.Left
    myTop = App.CurrentWindow.Top
    myWidth = App.CurrentWindow.Width
    myHeight = App.CurrentWindow.Height
  end if

  Select Case node.Text
  case "Beheer Gebruikers"

    App.CurrentWindow = new studentswindow

  case "Beheer Opdrachten"
    App.CurrentWindow = new KeyFilesWindow
  end Select


if myLeft <> Nil then<-------------------------------------------------this won't compile because myLeft is an integer not an object
    App.CurrentWindow.Left = myLeft
    App.CurrentWindow.Top = myTop
    App.CurrentWindow.Width = myWidth
    App.CurrentWindow.Height = myHeight
  end if

Now i can device a way around this, how do I test if an integer has been initialised ? Obviously I cannot test if myLeft <> 0 since 0 is a legal value. Any value is legal....
puzzled



More general in fighting windows. I want myApp to keep only one window open at the same time. What would be the best way to ensure this.

I have now:

code above is in a mouseUp of a taskbar (fires without a problem). What I want to do is close the currentwindow and open the new window. But how can I close the currentwindow , while it contains the instruction to open the new window. Do I need to reverse the instructions? First open the new and as the last line close the self?

puzzled some more :-)



TIA

Bart _______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to