Results 1 to 3 of 3

Thread: System Variables

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149

    Question

    Anyone know how to view the system variable on a windows 95 sytem and then how to call them from vb?

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    There are lots of way to do it. Most people do it thru API,
    here is one way to do it without any API, just VB function


    Try this code:
    Code:
    Private Sub Command1_Click()
    Dim i As Integer
    For i = 1 To 26
         Debug.Print Environ(i) & vbCrLf
    Next i
    
    End Sub

    Regards,
    TheBao

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Location
    Pittsburgh, PA
    Posts
    149

    Smile Thanks

    That was exactly what i needed.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width