Vorrei far leggere un file .INI alla mia applicazione (in Visual Basic 6.0). Qualcuno può aiutarmi e dirmi come si fa?
Ho provato a inserire la funzione seguente
codice:
Public Function ReadINI(FileName As String, _
                        Section As String, Key As String)
   Dim RetLen
    INIFileFound = True
    FileExists FileName
    If IsFileThere = False Then
        INIFileFound = False
        Exit Function
    End If
    Ret = Space$(255)
    RetLen = GetPrivateProfileString(Section, Key, "", _
                Ret, Len(Ret), FileName)
    Ret = Left$(Ret, RetLen)
    ReadINI = Ret
End Function
e a richiamarla, ma mi dà errore su FileExists.
Ci sarà sicuramente qualcosa da aggiungere.