Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get system information Pin
Kannan Kalyanaraman9-Dec-02 22:50
Kannan Kalyanaraman9-Dec-02 22:50 
GeneralRe: Get system information Pin
thematt10-Dec-02 2:41
thematt10-Dec-02 2:41 
GeneralRe: Get system information Pin
sammyh11-Dec-02 5:50
sammyh11-Dec-02 5:50 
GeneralScrolling Credits Pin
OBRon9-Dec-02 9:46
OBRon9-Dec-02 9:46 
Generalnull strings Pin
grv5759-Dec-02 7:33
grv5759-Dec-02 7:33 
GeneralRe: null strings Pin
peterchen9-Dec-02 7:59
peterchen9-Dec-02 7:59 
GeneralRe: null strings Pin
Richard Deeming10-Dec-02 0:15
mveRichard Deeming10-Dec-02 0:15 
GeneralRe: null strings Pin
Erik Doernenburg11-Dec-02 2:54
Erik Doernenburg11-Dec-02 2:54 
I am not sure what you mean by "contains just \0". If you mean something like the C string terminator this is not really used and if you happen to get strings like this you will have to test for this case explicitly.

If you want to treat null references the same as empty strings you need a test like this:

if((str == null) || (str == ""))

Do not check the string length, by the way. Strings can contain characters such as writing direction markers that do not show. Hence, their length is > 0 but they are still empty!

cheers
erik


GeneralRe: null strings Pin
grv57513-Dec-02 4:19
grv57513-Dec-02 4:19 
GeneralRichtextBox Pin
trones9-Dec-02 5:48
trones9-Dec-02 5:48 
GeneralRe: RichtextBox Pin
sammyh9-Dec-02 10:09
sammyh9-Dec-02 10:09 
Generalsimple drivers without recompiling Pin
Anonymous9-Dec-02 5:03
Anonymous9-Dec-02 5:03 
GeneralRe: simple drivers without recompiling Pin
Daniel Turini9-Dec-02 5:30
Daniel Turini9-Dec-02 5:30 
GeneralRe: simple drivers without recompiling Pin
Anonymous9-Dec-02 6:14
Anonymous9-Dec-02 6:14 
GeneralReflection and Delegates Pin
wayward9-Dec-02 4:09
wayward9-Dec-02 4:09 
GeneralRe: Reflection and Delegates Pin
wayward9-Dec-02 4:48
wayward9-Dec-02 4:48 
GeneralNew line in TextBox Pin
ValentinR9-Dec-02 2:03
ValentinR9-Dec-02 2:03 
GeneralRe: New line in TextBox Pin
trones9-Dec-02 5:50
trones9-Dec-02 5:50 
GeneralRe: New line in TextBox Pin
ValentinR9-Dec-02 20:59
ValentinR9-Dec-02 20:59 
QuestionTCP-Network Connection available? Pin
harzer Teddy9-Dec-02 1:06
harzer Teddy9-Dec-02 1:06 
AnswerI guess you need an IP-Adress of the Computer Pin
Teddy Sohnrey9-Dec-02 3:45
sussTeddy Sohnrey9-Dec-02 3:45 
GeneralABOUT MARSHAL IN MC++ Pin
novachen8-Dec-02 19:24
novachen8-Dec-02 19:24 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
David Stone9-Dec-02 8:46
sitebuilderDavid Stone9-Dec-02 8:46 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
Nick Parker9-Dec-02 9:52
protectorNick Parker9-Dec-02 9:52 
GeneralRe: ABOUT MARSHAL IN MC++ Pin
novachen9-Dec-02 14:39
novachen9-Dec-02 14:39 

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.