|
|
|||||||||||||
|
The GetTag method retrieves the data for a specific
tag in a taglist. This method will not descend
into the sections of a taglist. To
access a tag in a section, you must call OpenSection
and pass the section taglist to GetTag.
|
|||||||||||||
|
Parameters: |
|||||||||||||
|
|||||||||||||
|
Return Values: |
|||||||||||||
|
Tag data, as a string. All tag data is returned in the form of a
string, even if the data type for a tag is numeric. If the return
value is required in numeric form, include a call to a conversion function, for
example, |
|||||||||||||
|
Example: |
|||||||||||||
|
function LogOn()
{ var CAS_instance; // Get access to CAS interface and open an instance if (CAS = new ActiveXObject("CASX.CAS")) { if (CAS_instance = CAS.Open(0,"",0)) { var Tl, UniqueName, StatusNum; // Logon to the connection router Tl = CAS.New(); CAS.AddTag(Tl,"LOGON",""); UniqueName = "XYZ-"+parseInt(Math.random()*1000000+1000000); CAS.AddTag(Tl,"LOGON_NAME",UniqueName); CAS.AddTag(Tl,"DOMAIN_NAME","\\\\CASDEV\\NETSATISFAXTION"); CAS.AddTag(Tl,"PROTOCOL",2); // IP // Send taglist to CAS driver, to logon to domain Tl = CAS.Send(CAS_instance,Tl); StatusNum = parseInt(CAS.GetTag(Tl,"STATUS_NUM",0)); CAS.Delete(Tl); if (StatusNum == 0) { return(CAS_instance); } CAS.Close(CAS_instance); } delete CAS; } return(null); } |
|||||||||||||
|
See Also: |
|||||||||||||
| CAS New, CAS AddTag, CAS OpenSection, CAS Send | |||||||||||||
|
|