The node used as candidate for operation. Node consists of '/' (slash), node number, and
'[]' (bracket). Node number is the number which begins from 1. It is considered that root was specified when node is empty. Node can be compared to the directory structure of MS-DOS (I think it may be easy to understand that the description of
'node' in explanation is replaced with a 'directory').
To create node item, first specify node then add command to it.
構文
戻り値
使用例
特記事項
You can put 'slush' in front of the node string. It will be ignored.
Node can be made under the other node. In this case, you have to make parent node ahead of child node. The order to make nodes may differ from the order of actual SECS-II buffer.
1 : {
2 : {
3 : <a'abc'>
4 : }
5 : {
6 : <a'def'>
7 : }
8 : }
The order to add nodes are no matter and flexible whether "1, 2, 3, 5 then 6", "1, 2, 5, 3
then 6" or "1, 2, 5, 6 then 3".
1, 2, 3, 5 then 6
1, 2, 5, 3, then 6
1, 2, 5, 6 then 3
When you read node value, first specify node then read.
If node is array, they are returned separated with space code.
|
.Pointer = "1"
.Add SecsTypeBool, "1"
.Add SecsTypeBool, "0"
...
.Pointer = "1"
Dim strBuf As String
strBuf = .Value ' "1 0" is returned
|
If you extract one of the item in array, use bracket. Index of array begins with 0.
|
.Pointer = "1[1]"
Dim strBuf As String
strBuf = .Value ' "0" is returned
|
So if root node is array, it becomes strange format -- only bracket.
|
.List = ""
.Pointer = "[1]"
Dim strBuf As String
strBuf = .Value ' "3.14" is returned
|
Bracket is ignored in ASCII, JIS-8 and List.
参照
|