<-- Previous || Up || Next -->

Get Profile Int Function
Windows API Class

Public Function GetProfileInt( _
      ByVal vKeyName As Variant _
    , Optional ByVal vDefault As Variant _
    , Optional ByVal vSectionName As Variant _
    ) As Variant

"Get Profile Integer"
Get the value of an (Integer) numeric setting from the Windows Registry.
Function returns a Long value.

Example:
    Assuming
       Dim estWAPI As New WindowsAPI
       estWAPI.ProfileSectionName = "Sample Section"
       estWAPI.WriteProfileInt("Major Version", 5) = True
    for example
       estWAPI.GetProfileInt("Major Version") = 5
See also:
    GetProfileString Function
    GetProfileSection Function
    WriteProfileString Function
    GetPrivateProfileInt Function
    ProfileSectionName Property
    GetProfileInt Function (Windows API)
vKeyName: Name of the numeric setting whose value is to be retrieved. Function returns Null if vKeyName is Null or cannot be fixed-up to a String.
vDefault: Default value that will be returned by this function where there is no setting with the specified Name. vDefault defaults to 0 (zero) if it is missing or Null or cannot be fixed-up to a number.
vSectionName: The Section within the Profile file or Windows Registry that contains the Setting. vSectionName defaults to the current value of the ProfileSectionName Property if it is missing or Null or cannot be fixed-up to a String.
v1.3 Change: Removed 16-bit support from this function.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.