Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Client-Data connection at Run Time
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00219985
Message ID:
00220822
Views:
24
ACtually, what you can also do is use the Registry to store that information, user SaveSettings, GetSettings and the other Registry related functions. This is the "official" method Microsoft would like developpers to use (also part of being certified as a "true" Win9x/NT program).

Just another way of them shoving "standards" down our throats... er, I mean, simplyfying our lives as developpers, right?!

Hugo

>Thanx Rolando,
>
>>Private Sub Command1_Click()
>>Dim NumFile As Integer
>>Dim myPath As String
>> NumFile = FreeFile
>> Open "c:\path\path.ini" For Input As #NumFile
>> Input #1, myPath
>> MsgBox (myPath)
>> Close #NumFile
>>End Sub
>
>Your code worked great. Also, I finally figured out this object oriented version using the TextStream Object (VB6):
>
> Set fs = CreateObject("Scripting.FileSystemObject")
> Set a = fs.OpenTextFile("c:\windows\temp\path.ini")
> mpath = a.ReadLine
>
>Also reads the first line of c:\windows\temp\path.ini
>
>thanx again,
>John Morga
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Reply
Map
View

Click here to load this message in the networking platform