Dear All,
We are developing a Windows application where programmers write sql
statement and pass their variables in a : separated format to my
function...after executing the query...my class should set the
variables to its values...how do I achieve this? Can I use
thread.CurrentContext? Do all my classes need to be derived from
ContextBoundObject?
f.e.x.
class SqlHandle
{
public bool executeQuery (Context oContext, string Sql)
{
...
}
}
class myForm
{
public getValues()
{
string name = "";
int age = 0;
SqlHandle oSqlHandle = new SqlHandle();
oSqlHandle.executeQuery(thread.CurrentContext, "Select Name, age
FROM TblPerson INTO :name, :age;");
}
}
How do I achieve this functionality? Please help...
TALIA
Many regards
Jack
|