Anyone know how to view the system variable on a windows 95 sytem and then how to call them from vb?
Printable View
Anyone know how to view the system variable on a windows 95 sytem and then how to call them from vb?
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
That was exactly what i needed.
Thanks