OpenScreen

<< Click to Display Table of Contents >>

 

OpenScreen

OpenScreen(ScreenName, Arg)

This method opens a Screen inside a Splitter. The ScreenName parameter determines the name of a Screen to open, and users can also specify some properties for that Screen. Please check the Splitter's SplitLink property for more information about the format to specify a screen in this parameter. The Arg parameter allows specifying a value to pass to a Screen via its OnPreShow event, such as in the next example.

Sub Button1_Click()
  'Clicking this button opens Screen2 on Test frame,
  'a zoom of 100%, without a scroll bar,
  'and a default alignment relative to the visible area.
  'Also, passes a String to use on the OnPreShow event
  Application.GetFrame("Test")._
    OpenScreen "Screen2?100?0?0", "This is a test."
End Sub
 
Sub Screen2_OnPreShow(vArg)
  'This message box displays the sentence
  'the sentence "This is a test."
  MsgBox vArg
End Sub

Was this page useful?