Discuss this help topic in MsgConnect Forum

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



DataTree.SetValueType

DataTree     See also    


Allows to set the type of data that the Value holds.

Declaration

[C++]
    void SetValueType(char* Key, char* ValueName, MCValueType NewType);

[Pascal]
    procedure SetValueType(Key, ValueName : string; NewType : TMCValueType);

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public void SetValueType(string Key, string ValueName, byte NewType);

[VB.NET]
    Public Sub SetValueType(ByVal Key As String, ByVal ValueName As String, ByVal NewType As Byte)

[Java]
    public void SetValueType(String Key, String ValueName, byte NewType);

[Java ME]
    public void SetValueType(String Key, String ValueName, byte NewType);

[DLL]
    not applicable;

Parameters

  • Key - key name. For more information look here.
  • ValueName - value name. For more information look here.
  • NewType - specifies new data type.

Description

    Use this method to change type of the data that the Value holds or to create new value with specified data type. When setting type of the value all previously hold data are lost. SetValueType creates a value if it doesn't exist.

See also:     GetValueType     Save     SaveToStream    

Discuss this help topic in MsgConnect Forum