home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / SMASTERS / APPROACH / SURFNET.MPR / SCRIPT / ApproachDoc / Setup.s (.txt) < prev    next >
Null Bytes Alternating  |  1997-01-09  |  3KB  |  39 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Switchto(Source As Form, View As VIEW)
  5. Declare Sub Switchfrom(Source As Form, View As VIEW)
  6.  
  7. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8.  
  9. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10. Private Sub BindEvents(Byval Objectname_ As String)
  11.     Static Source As FORM
  12.     Set Source = Bind(Objectname_)
  13.     On Event Switchto From Source Call Switchto
  14.     On Event Switchfrom From Source Call Switchfrom
  15. End Sub
  16.  
  17. '++LotusScript Development Environment:2:2:Switchto:1:12
  18. Sub Switchto(Source As Form, View As VIEW)
  19.     On Error 11026 Goto NoWebtrek
  20.     
  21.     Source.Body.fldProxyServer.ReadOnly = False
  22.     Source.Body.fldProxyPort.ReadOnly = False
  23.     CurrentDocument.Setup.Body.fldProxyServer.Text = CurrentDocument.Webtrek~ Browser.Body.oleWebtrek.ProxyServerHTTP
  24.     CurrentDocument.Setup.Body.fldProxyPort.Text = Str(CurrentDocument.Webtrek~ Browser.Body.oleWebtrek.ProxyPortHTTP)
  25.     Source.Body.btnProxySave.Enabled = True
  26.     Goto EndLoadPage
  27.     
  28. NoWebtrek:
  29.     Source.Body.fldProxyServer.ReadOnly = True
  30.     Source.Body.fldProxyPort.ReadOnly = True
  31.     Source.Body.btnProxySave.Enabled = False
  32.     Resume EndLoadPage
  33.     
  34. EndLoadPage:
  35. End Sub
  36. '++LotusScript Development Environment:2:2:Switchfrom:1:12
  37. Sub Switchfrom(Source As Form, View As VIEW)
  38.     
  39. End Sub