![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTexas ATL COM APIExecute |
HRESULT Execute( LONGLONG SessionID, LONG MethodOptions, LONG Language );
| SessionID | The Session ID for the current user, zero for method by the default session. |
| MethodOptions | Not sure. |
| Language | for any string for example errors. |
TComAPI.CTVariable parameter = new TComAPI.CTVariableClass();
parameter.get_Element("UserName").AString = Request.QueryString["UserName"];
TComAPI.CTQuery query = new TComAPI.CTQueryClass();
query.AddMethod("Get Entity Details",1,parameter.get_ToString(0));
query.Execute((long)Session["SessionID"],0,0);
parameter.SetStructure(query.get_Results("Get Entity Details"),0);
if(parameter.Type == 12)//return structure, not error, treat as good
Label1.Text = parameter.get_ToString(7);
else Label1.Text = "Get Entity Details Error - " + parameter.get_ToString(0);
Copyright © 2007, Ekky Software Pty Ltd.