Discuss this help topic in MsgConnect Forum

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



DataTree.ReadDouble

DataTree     See also    


Attempts to read double data from the specified key/value.

Declaration

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

[Pascal]
    function ReadDouble(Key : string; ValueName : string; DefValue : Double; var Value : Double): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

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

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

[Java]
    public boolean ReadDouble(String Key, String ValueName, double DefValue, DoubleHolder Value);

[Java ME]
    public boolean ReadDouble(String Key, String ValueName, double DefValue, DoubleHolder 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 double 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     ReadInteger     ReadString     ReadMultiString     ReadWideString    . WriteDouble    

Discuss this help topic in MsgConnect Forum