Discuss this help topic in MsgConnect Forum

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



DataTree.Delete

DataTree     See also    


Deletes key or value.

Declaration

[C++]
    bool Delete(char* Key, char* ValueName);

[Pascal]
    function Delete(Key, ValueName : string): Boolean;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public bool Delete(string Key, string ValueName);

[VB.NET]
    Public Function Delete(ByVal Key As String, ByVal ValueName As String) As Boolean

[Java]
    public boolean Delete(String Key, String ValueName);

[Java ME]
    public boolean Delete(String Key, String ValueName);

[DLL]
    not applicable;

Parameters

  • Key - key name. For more information look here.
  • ValueName - name of the value you want to delete. If you don't set this parameter then key with all subkeys and values will be deleted. For more information look here.

Return value

    True on success
    False if non-existent value or root key is specified.

Description

    Use this method to delete key or value. If you delete key all its values and subkeys are deleted.

See also:     Clear     ClearKey    

 

Discuss this help topic in MsgConnect Forum