27.3.2.4.2 GetTagList
Get a list of all tags exist in the current active project node.
Syntax
viewdll.dll |
int VD_API VdGetTaglist(char *tagbuf, int tagsize, int start, int num); |
Bwdllobj |
Public Function GetTagList(start As Integer, num As Integer) As Array |
C# |
Array GetTagList(Integer start, Integer num); |
Parameters
start
[in] Extract a tag list from start position within the system tag list.
num
[in] Extract specific number of tags from the start position within the system tag list.
Return Value
Type: Array
Return the tag name list array represent in string format.
Remarks
C# Sample Code
private void tbGetTagList_Click(object sender, EventArgs e) { int start = 0; int num = ViewDllWrap.GetTagNumber(); Array tagList = ViewDllWrap.GetTagList(start, num); if(num == 0) { MessageLog("Tag list is empty."); } else if (num > 0) { MessageLog("There has " + num.ToString() + " tags."); } lbTagName.Items.Clear(); foreach (string a in tagList) { lbTagName.Items.Add(a); } } |