Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebException timeout Problem. Pin
Eddy Vluggen9-Jul-13 3:03
professionalEddy Vluggen9-Jul-13 3:03 
QuestionDeveloping a Point of Sale System for Reataurant/Hotel Pin
MohdWaseem8-Jul-13 3:46
MohdWaseem8-Jul-13 3:46 
AnswerRe: Developing a Point of Sale System for Reataurant/Hotel Pin
Manfred Rudolf Bihy8-Jul-13 4:46
professionalManfred Rudolf Bihy8-Jul-13 4:46 
AnswerRe: Developing a Point of Sale System for Reataurant/Hotel Pin
Dave Kreskowiak8-Jul-13 5:18
mveDave Kreskowiak8-Jul-13 5:18 
AnswerRe: Developing a Point of Sale System for Reataurant/Hotel Pin
Walt Dexter8-Jul-13 7:21
Walt Dexter8-Jul-13 7:21 
AnswerRe: Developing a Point of Sale System for Reataurant/Hotel Pin
Bernhard Hiller8-Jul-13 23:12
Bernhard Hiller8-Jul-13 23:12 
QuestionMessage Closed Pin
7-Jul-13 11:28
User34907-Jul-13 11:28 
AnswerRe: double.tryparse() Pin
Garth J Lancaster7-Jul-13 12:33
professionalGarth J Lancaster7-Jul-13 12:33 
iirc correctly, that means you'd have to get the result from your table as a string - which depends on how the table/schema is defined (you dont show this)

Assuming you can get the value as a string, then

C#
String strbranchExposureFactor = [value from DB]
Double branchExposureFactor = 0.0;
if (Double.TryParse(strbranchExposureFactor, out branchExposureFactor))
// Value is Good 
else
// Value is Bad/?Out Of Range...


Disclaimer : ok, Im not endorsing the 'str' prefix (whats this, Hungarian notation ?) for the String variable, use whatever your conventions dictate/allow

btw

http://msdn.microsoft.com/en-us/library/3s27fasw.aspx[^]

and

http://stackoverflow.com/questions/586436/double-tryparse-or-convert-todouble-which-is-faster-and-safer[^]

'g'
AnswerRe: double.tryparse() Pin
Mycroft Holmes7-Jul-13 13:06
professionalMycroft Holmes7-Jul-13 13:06 
QuestionC# Pin
Manish Kumar1234567-Jul-13 9:56
Manish Kumar1234567-Jul-13 9:56 
AnswerRe: C# Pin
Pete O'Hanlon7-Jul-13 10:45
mvePete O'Hanlon7-Jul-13 10:45 
AnswerRe: C# Pin
Jay Nardev7-Jul-13 20:18
Jay Nardev7-Jul-13 20:18 
AnswerRe: C# Pin
Amol_B7-Jul-13 20:56
professionalAmol_B7-Jul-13 20:56 
Questionhow to read html Pin
badalsngh27-Jul-13 7:36
badalsngh27-Jul-13 7:36 
AnswerRe: how to read html Pin
Mycroft Holmes7-Jul-13 13:00
professionalMycroft Holmes7-Jul-13 13:00 
AnswerRe: how to read html Pin
Thomas Daniels7-Jul-13 20:45
mentorThomas Daniels7-Jul-13 20:45 
AnswerRe: how to read html Pin
karthiksruby@1238-Jul-13 4:20
karthiksruby@1238-Jul-13 4:20 
QuestionC# Multiple connectionstring Pin
User34907-Jul-13 5:13
User34907-Jul-13 5:13 
AnswerRe: C# Multiple connectionstring Pin
NotPolitcallyCorrect7-Jul-13 5:34
NotPolitcallyCorrect7-Jul-13 5:34 
GeneralRe: C# Multiple connectionstring Pin
User34907-Jul-13 6:35
User34907-Jul-13 6:35 
GeneralRe: C# Multiple connectionstring Pin
NotPolitcallyCorrect7-Jul-13 6:52
NotPolitcallyCorrect7-Jul-13 6:52 
GeneralRe: C# Multiple connectionstring Pin
Richard MacCutchan7-Jul-13 7:25
mveRichard MacCutchan7-Jul-13 7:25 
GeneralRe: C# Multiple connectionstring Pin
NotPolitcallyCorrect7-Jul-13 10:17
NotPolitcallyCorrect7-Jul-13 10:17 
GeneralRe: C# Multiple connectionstring Pin
karthiksruby@1238-Jul-13 4:27
karthiksruby@1238-Jul-13 4:27 
GeneralRe: C# Multiple connectionstring Pin
NotPolitcallyCorrect8-Jul-13 5:00
NotPolitcallyCorrect8-Jul-13 5:00 

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.