PC Review


Reply
Thread Tools Rate Thread

CurrentContext to set a variable value in a function or class

 
 
Jack Wright
Guest
Posts: n/a
 
      17th Apr 2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to hide base class member variable in derived class (w/oshadows)? Joe Duchtel Microsoft VB .NET 5 18th Jun 2009 07:37 PM
CurrentContext with forms auth Smokey Grindle Microsoft ASP .NET 3 5th Feb 2007 04:31 PM
changing variable types of a function of a derived class mrclash Microsoft C# .NET 2 20th Sep 2006 12:53 PM
Base Class Method to use Shadow'ed member variable of Derived Class? Joe HM Microsoft VB .NET 2 4th Apr 2006 03:59 PM
Variable accessible to all function within class tedqn@yahoo.com Microsoft C# .NET 7 21st Sep 2005 07:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.