Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to read value at specifix XML node Pin
PIEBALDconsult4-Dec-13 13:34
mvePIEBALDconsult4-Dec-13 13:34 
AnswerRe: how to read value at specifix XML node Pin
HobbyProggy5-Dec-13 4:01
professionalHobbyProggy5-Dec-13 4:01 
GeneralRe: how to read value at specifix XML node Pin
bimbambumbum5-Dec-13 7:19
bimbambumbum5-Dec-13 7:19 
QuestionPlease answer it is my biggest problem. Pin
Tera Mind4-Dec-13 10:59
professionalTera Mind4-Dec-13 10:59 
AnswerRe: Please answer it is my biggest problem. Pin
Mycroft Holmes4-Dec-13 11:44
professionalMycroft Holmes4-Dec-13 11:44 
GeneralRe: Please answer it is my biggest problem. Pin
Tera Mind4-Dec-13 12:01
professionalTera Mind4-Dec-13 12:01 
GeneralRe: Please answer it is my biggest problem. Pin
Mycroft Holmes4-Dec-13 16:13
professionalMycroft Holmes4-Dec-13 16:13 
AnswerRe: Please answer it is my biggest problem. Pin
OriginalGriff4-Dec-13 11:57
mveOriginalGriff4-Dec-13 11:57 
As Mycroft has said, yes you can.
However, you probably don't want to, unless you have only one person or gender in your database.

If you make it static, you only get one per application, which makes it impossible to expand things later to support motte than one record at a time. Normally, this kind of information would be stored as part of a class instance identifying a person, rather than as a static variable.

Under normal circumstances, it is evidence of poor design to have to use static variables for something like this, and will generally cause you significant problems later.
GeneralRe: Please answer it is my biggest problem. Pin
Tera Mind4-Dec-13 12:16
professionalTera Mind4-Dec-13 12:16 
GeneralRe: Please answer it is my biggest problem. Pin
OriginalGriff4-Dec-13 21:47
mveOriginalGriff4-Dec-13 21:47 
AnswerRe: Please answer it is my biggest problem. Pin
Richard MacCutchan4-Dec-13 22:13
mveRichard MacCutchan4-Dec-13 22:13 
AnswerRe: Please answer it is my biggest problem. Pin
WuRunZhe9-Dec-13 2:42
WuRunZhe9-Dec-13 2:42 
Questionif/then/else variable frustration Pin
Steve Embry4-Dec-13 9:56
Steve Embry4-Dec-13 9:56 
AnswerRe: if/then/else variable frustration Pin
Pete O'Hanlon4-Dec-13 10:07
mvePete O'Hanlon4-Dec-13 10:07 
GeneralRe: if/then/else variable frustration Pin
Steve Embry4-Dec-13 15:09
Steve Embry4-Dec-13 15:09 
GeneralRe: if/then/else variable frustration Pin
DRAYKKO5-Dec-13 8:05
professionalDRAYKKO5-Dec-13 8:05 
AnswerRe: if/then/else variable frustration Pin
Mycroft Holmes4-Dec-13 11:53
professionalMycroft Holmes4-Dec-13 11:53 
Questionif/then/else variable frustration Pin
Steve Embry4-Dec-13 9:51
Steve Embry4-Dec-13 9:51 
AnswerRe: if/then/else variable frustration Pin
s_magus4-Dec-13 10:08
s_magus4-Dec-13 10:08 
GeneralRe: if/then/else variable frustration Pin
Steve Embry4-Dec-13 15:07
Steve Embry4-Dec-13 15:07 
GeneralRe: if/then/else variable frustration Pin
s_magus4-Dec-13 16:34
s_magus4-Dec-13 16:34 
GeneralRe: if/then/else variable frustration Pin
Steve Embry4-Dec-13 16:57
Steve Embry4-Dec-13 16:57 
GeneralParameterized Queries Pin
BBatts4-Dec-13 3:17
BBatts4-Dec-13 3:17 
GeneralRe: Parameterized Queries Pin
Simon_Whale4-Dec-13 3:23
Simon_Whale4-Dec-13 3:23 
GeneralRe: Parameterized Queries Pin
PIEBALDconsult4-Dec-13 4:19
mvePIEBALDconsult4-Dec-13 4:19 

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.