27.3.2.4.3 GetTagNumber
Get the total number of tags within the current system tag list of current active project node.
Syntax
viewdll.dll |
int VD_API VdGetTagNo(); |
Bwdllobj |
Public Function GetTagNumber() As Integer |
C# |
Integer GetTagNumber(); |
Parameters
None.
Return Value
Type: Integer
Return the total number of tags within the current system tag list of current active project node.
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); } } |