Property Windows API Class

ProfileFileName

Specifies the Private Profile (INI) file name that will be used by the Private Profile functions when their vFileName argument is missing or Null. Get the current value of the ProfileFileName Property.

Signature (Visual Basic / VBA)

Public Property Get ProfileFileName( _
    ) As String

Code Examples

    Assuming
       Dim estWAPI As New WindowsAPI
    for example
       estWAPI.ProfileFileName = "ESUnits.Ini"
       estWAPI.ProfileSectionName = "Entisoft Units"
       estWAPI.WritePrivateProfileString("Convert From", "5 kilometers") = True
Public Property Let ProfileFileName( _
    ByVal vFileName As String _
    )

Notes & Version History

Details Set the current value of the ProfileFileName Property.
Warning Be careful about using this Property if your program employs multi-tasking and the profile functions can possibly be called simultaneously from different parts of your program.