Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



DataTree.ReadInteger

DataTree     See also    


Attemts to read integer data from the specified ket/value.

Declaration

[C++]
    bool ReadInteger(char* Key, char* ValueName, long DefValue, long& Value);

[Pascal]
    function ReadInteger(Key : string; ValueName : string; DefValue : integer; var Value : integer): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool ReadInteger(string Key, string ValueName, int DefValue,ref int Value);

[VB.NET]
    Public Function ReadInteger(ByVal Key As String, ByVal ValueName As String, ByVal DefValue As Integer, ByRef Value As Integer) As Boolean

[Java]
    public boolean ReadInteger(String Key, String ValueName, int DefValue, IntegerHolder Value);

[Java ME]
    public boolean ReadInteger(String Key, String ValueName, int DefValue, IntegerHolder Value);

[DLL]
    not applicable;

Parameters

  • Key - key name. For more information look here.
  • ValueName - value name. For more information look here.
  • DefValue - set here the value that will be returned on failure.
  • Value - returns read value on success or DefValue on failure.

Return value

    True on success.
    False on failure.

Description

    Use this method to read integer data from the specified key/value. Sets Value and returns True on success or sets Value to DefValue and returns False on failure.

See also:     ReadBinary     ReadBool     ReadDouble     ReadString     ReadMultiString     ReadWideString     WriteInteger    

Discuss this help topic in MsgConnect Forum