Home Texas Home

CTVariable::Label

CTVariable::Label returns or sets the Label of the TVariable element.
HRESULT Label(
   [out, retval] BSTR* pVal
);

HRESULT Label(
   [in] BSTR newVal
);
	

Parameters

pVal A pointer to a string object to contain the name.
newVal The new label name

Return Values

S_OK for success, windows error code otherwise.

Remarks

Example Use


TComAPI.CTVariable parameter = new TComAPI.CTVariableClass();
parameter.get_Element("UserName").AString = Request.QueryString["UserName"];
Label1.Text = parameter.get_Index(0).Label;//returns "UserName"


Also See

Element

Copyright © 2007, Ekky Software Pty Ltd.