Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: set a password Textbox to normal Pin
Sasuko2-Jan-06 13:16
Sasuko2-Jan-06 13:16 
GeneralRe: set a password Textbox to normal Pin
Judah Gabriel Himango2-Jan-06 13:51
sponsorJudah Gabriel Himango2-Jan-06 13:51 
AnswerRe: set a password Textbox to normal Pin
Luis Alonso Ramos2-Jan-06 13:23
Luis Alonso Ramos2-Jan-06 13:23 
GeneralRe: set a password Textbox to normal Pin
Sasuko2-Jan-06 13:27
Sasuko2-Jan-06 13:27 
Questionwebservice default page Pin
BlackDice2-Jan-06 11:36
BlackDice2-Jan-06 11:36 
QuestionUsing a boolean expression as a variable Pin
topdog502-Jan-06 10:22
topdog502-Jan-06 10:22 
AnswerRe: Using a boolean expression as a variable Pin
Guffa2-Jan-06 12:49
Guffa2-Jan-06 12:49 
GeneralRe: Using a boolean expression as a variable Pin
topdog503-Jan-06 7:49
topdog503-Jan-06 7:49 
Thank you for you response. I realize that the variable must be initially stored as a text expression and then somehow converted to a valid boolean expression. My question is how does one convert a boolean expression originally stored as text into a valid boolean expression that can be evaluated? Surely this must be possible somehow. Actually I had success hard-coding the expression to an object and then converting to boolean as detailed below: The catch is storing this "object" expression in SQL and then loading it into the object variable and then converting the expression from an object to a valid boolean expression

If C# allows the following expression to be used in an "if" statement then there must be someway to convert the expression from a text to a boolean.

This works:
object _condition = NULL;
_condition = ((_loanPurpose < 3) && (_programGroup == 3) && (_approvalLevel == 8) && (_agency == 1) );
bool _reason = false;
_reason = Convert.ToBoolean(_condition);
if (_reason)
{
_adjustPrice += -1.000;
}

Is there a way to store an object that looks like the expression above in a SQL fields and then loading into an object variable to be converted to a boolean expression like above?
AnswerRe: Using a boolean expression as a variable Pin
Guffa4-Jan-06 2:30
Guffa4-Jan-06 2:30 
Questionare there any good tutorials VS.NET debugging? Pin
...---...2-Jan-06 10:04
...---...2-Jan-06 10:04 
AnswerRe: are there any good tutorials VS.NET debugging? Pin
Colin Angus Mackay2-Jan-06 12:44
Colin Angus Mackay2-Jan-06 12:44 
AnswerRe: are there any good tutorials VS.NET debugging? Pin
Colin Angus Mackay2-Jan-06 12:49
Colin Angus Mackay2-Jan-06 12:49 
GeneralRe: are there any good tutorials VS.NET debugging? Pin
...---...2-Jan-06 13:32
...---...2-Jan-06 13:32 
AnswerRe: are there any good tutorials VS.NET debugging? Pin
Kevin McFarlane3-Jan-06 1:11
Kevin McFarlane3-Jan-06 1:11 
QuestionHow to call WIN 32 API in Winform Pin
largs2-Jan-06 8:46
largs2-Jan-06 8:46 
AnswerRe: How to call WIN 32 API in Winform Pin
Ravi Bhavnani2-Jan-06 9:37
professionalRavi Bhavnani2-Jan-06 9:37 
QuestionHow to change text's font and style in an enrichtextbox by code? Pin
bc11182-Jan-06 7:34
bc11182-Jan-06 7:34 
AnswerRe: How to change text's font and style in an enrichtextbox by code? Pin
Ravi Bhavnani2-Jan-06 9:39
professionalRavi Bhavnani2-Jan-06 9:39 
GeneralRe: How to change text's font and style in an enrichtextbox by code? Pin
bc11182-Jan-06 12:24
bc11182-Jan-06 12:24 
QuestionEmbedding Java into C# Pin
2hdass2-Jan-06 7:31
2hdass2-Jan-06 7:31 
AnswerRe: Embedding Java into C# Pin
Judah Gabriel Himango2-Jan-06 12:52
sponsorJudah Gabriel Himango2-Jan-06 12:52 
QuestionStreamReader timeout? Pin
Ravi Bhavnani2-Jan-06 7:23
professionalRavi Bhavnani2-Jan-06 7:23 
AnswerRe: StreamReader timeout? Pin
Dave Kreskowiak2-Jan-06 12:08
mveDave Kreskowiak2-Jan-06 12:08 
GeneralRe: StreamReader timeout? Pin
Ravi Bhavnani2-Jan-06 12:22
professionalRavi Bhavnani2-Jan-06 12:22 
GeneralRe: StreamReader timeout? Pin
Dave Kreskowiak2-Jan-06 14:59
mveDave Kreskowiak2-Jan-06 14:59 

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.