Jazz Soft Contact us?   JazzSoft@live.com     English   English  Japanese  Chinese (Traditional)  Chinese (Simlified)
Factory Automation & Yield Management Solution Provider 
Skip Navigation LinksHome > Products > Swing > Swing SECS II Reference > Properties > ValueHex

Jazz Soft has been moved from Japan to New York in 2024.

Swing SECS II Reference   

Properties
Appearance
Array
BlockNumber
BorderStyle
DeviceID
EBit
Function
List
Msg
Pointer
PType
RBit
SessionID
Show
SourceID
Stream
SType
SystemBytes
TransactionID
Type
Value
ValueHex
WBit

Methods
Add
Init
Reply

Events

ValueHex Property

This property indicates node value as hexadecimal.

Syntax

Visual Basic



Visual C++


Return Value

Example

Visual Basic

If .ValueHex = "ff" Then
  Text1.Text = "Value is 0xff"
End If


Visual C++

if(m_msg.GetValueHex()=="ff")
  m_text1="Value is 0xff";

Remarks

If node is array, the result is separated by space code.

Visual Basic


.List = "{<u2 0x10 0x20 0x30 0x40>}"
Dim strResult As String
.Pointer = "1"
strResult = .ValueHex   ' "0010 0020 0030 0040"


Visual C++


m_msg.SetList("{<u2 0x10 0x20 0x30 0x40>}");
m_msg.SetPointer("1");
CString strBuf=m_msg.GetValueHex();   // "0010 0020 0030 0040"

If you want to extract one of array, use bracket. Index of array begins with 0.

Visual Basic


.List = "{<u2 0x10 0x20 0x30 0x40>}"
Dim strResult As String
.Pointer = "1[2]"
strResult = .ValueHex   ' "0030"


Visual C++


m_msg.SetList("{<u2 0x10 0x20 0x30 0x40>}");
m_msg.SetPointer("1[2]");
CString strBuf=m_msg.GetValueHex();   // "0030"

This property is read only. You can not set value.

See Also

Contact us?   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.