27.3.2.4.5 SetValue

 

Set the value of specific tag.

 

Syntax

viewdll.dll

void VD_API VdBroadWinSetValueText(struct VIEWDLL_ID *id, char *text);

Bwdllobj

Public Sub SetValue(id As Object, value As String)

C#

Void SetValue(Object id, String value);

 

Parameters

id

[in] Specific tag ID that return by GetID() function with a specific tag name.

value

[in] the value that assign to specific tag.

 

Return Value

None.

 

Remarks

 

C# Sample Code

private void btnSet_Click(object sender, EventArgs e)

{

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

    if (Id == null)

    {

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

            + ViewDllWrap.ReturnCode.ToString());

        return;

    }

    ViewDllWrap.SetValue(Id, tbResult.Text);

}