Click here to Skip to main content
15,892,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: Casting Issues... Pin
leppie13-Oct-02 3:47
leppie13-Oct-02 3:47 
QuestionWhere to find .NET compatible languages? Pin
Zibar12-Oct-02 5:21
sussZibar12-Oct-02 5:21 
AnswerRe: Where to find .NET compatible languages? Pin
Stephane Rodriguez.12-Oct-02 9:57
Stephane Rodriguez.12-Oct-02 9:57 
GeneralProgress Bar in a status panel... Pin
Richard Smith11-Oct-02 13:45
Richard Smith11-Oct-02 13:45 
GeneralRe: Progress Bar in a status panel... Pin
leppie12-Oct-02 10:54
leppie12-Oct-02 10:54 
GeneralRe: Try this. Pin
Masaaki Onishi12-Oct-02 11:32
Masaaki Onishi12-Oct-02 11:32 
GeneralRe: Progress Bar in a status panel... Pin
Nick Parker12-Oct-02 17:24
protectorNick Parker12-Oct-02 17:24 
GeneralRe: Progress Bar in a status panel... Cheaters! Pin
Richard Smith13-Oct-02 2:53
Richard Smith13-Oct-02 2:53 
GeneralDeclaration error. Pin
suresh_sathya11-Oct-02 0:43
suresh_sathya11-Oct-02 0:43 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 0:50
Paul Riley11-Oct-02 0:50 
GeneralRe: Declaration error. Pin
suresh_sathya11-Oct-02 1:18
suresh_sathya11-Oct-02 1:18 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 1:23
Paul Riley11-Oct-02 1:23 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 1:34
Paul Riley11-Oct-02 1:34 
GeneralRe: Declaration error. Pin
leppie11-Oct-02 9:35
leppie11-Oct-02 9:35 
GeneralRe: Declaration error. Pin
Paul Riley11-Oct-02 10:13
Paul Riley11-Oct-02 10:13 
GeneralRe: Declaration error. Pin
Daniel Turini11-Oct-02 1:38
Daniel Turini11-Oct-02 1:38 
GeneralRe: Declaration error. Pin
Luis Alonso Ramos11-Oct-02 9:40
Luis Alonso Ramos11-Oct-02 9:40 
GeneralRe: Declaration error. Pin
leppie11-Oct-02 10:03
leppie11-Oct-02 10:03 
OK I think I might have the answer for you Smile | :)

string selectSQL = "SELECT CustomerID, CompanyName FROM Customers WHERE (Country = @Country) AND (City = @City)";

suresh_sathya wrote:
When i run this program,it says Must declare the variable '@Country'.

string country = "UK";
string city = "London";
selectCMD.Parameters.Add("@Country", OleDbType.VarChar, 15).Value = country;
selectCMD.Parameters.Add("@City", OleDbType.VarChar, 15).Value = city;

Try that too Smile | :)

Hope it helps!


Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
GeneralFinding the * Pin
Nnamdi Onyeyiri10-Oct-02 5:52
Nnamdi Onyeyiri10-Oct-02 5:52 
GeneralRe: Finding the * Pin
Daniel Turini10-Oct-02 6:01
Daniel Turini10-Oct-02 6:01 
GeneralRe: Finding the * Pin
Nnamdi Onyeyiri10-Oct-02 6:01
Nnamdi Onyeyiri10-Oct-02 6:01 
GeneralRe: Finding the * Pin
David Stone10-Oct-02 14:03
sitebuilderDavid Stone10-Oct-02 14:03 
GeneralRe: Finding the * Pin
Eric Gunnerson (msft)11-Oct-02 10:52
Eric Gunnerson (msft)11-Oct-02 10:52 
GeneralRe: Finding the * Pin
David Stone11-Oct-02 13:48
sitebuilderDavid Stone11-Oct-02 13:48 
GeneralEmail header Pin
Tomas Petricek9-Oct-02 12:11
Tomas Petricek9-Oct-02 12:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.