CTQuery::Results

CTQuery::Results get the resutls from the query object once the CTQuery::Execute method has completed.

HRESULT Results(
   BSTR MethodName,
   [out, retval] BSTR* pVal
);

Parameters

MethodName The method name
pVal A string object to contain the formated results.

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"];
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);

Also See

CTQuery::AddMethod, CTQuery::Execute
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript