home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmEnviron
- Caption = "Environment Reader"
- ClientHeight = 2790
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 5475
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2790
- ScaleWidth = 5475
- Begin VB.ListBox lstEnv
- Height = 1785
- Left = 180
- TabIndex = 0
- Top = 240
- Width = 5055
- End
- Begin VB.Label lblVal
- Caption = "Label1"
- Height = 555
- Left = 180
- TabIndex = 1
- Top = 2100
- Width = 5055
- End
- Attribute VB_Name = "frmEnviron"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved
- Dim ev As New EVClass
- ' Load the list box with environment strings
- Private Sub Form_Load()
- Dim e$
- Dim cnt%
- Do
- e$ = ev.GetString(cnt%)
- If e$ <> "" Then lstEnv.AddItem e$
- cnt% = cnt% + 1
- Loop While e$ <> ""
- End Sub
- Private Sub lstEnv_Click()
- lblVal.Caption = ev.GetStringValue(lstEnv.Text)
- End Sub
-