27.3.2.4.1 GetId

 

Get the tag ID relative to specific tag name for tag operations.

 

Syntax

viewdll.dll

int VD_API VdBroadWinGetId(struct VIEWDLL_ID *id, char *tag);

Bwdllobj

Public Function GetId(tag As String) As Object

C#

Object GetId(String tag);

 

Parameters

tag

[in] The specific tag name to get the tag ID.

 

Return Value

Type: Object

Return the tag ID relative to input specific tag name. The return value represents the internal handle of tag that used by WebAccess system.

 

Remarks

User should only use to call the relative APIs provided by this library. Any invalid operation may cause unexpected and not guarantee result.

 

C# Sample Code

private void btnGet_Click(object sender, EventArgs e)

{

    object Id = ViewDllWrap.GetId(tbTagName.Text);

    if (Id == null)

    {

        MessageLog("GetId() Failed. Return Code: "

            + ViewDllWrap.ReturnCode.ToString());

        return;

    }

}