Click here to Skip to main content
15,904,351 members
Home / Discussions / C#
   

C#

 
Questionabout the time period Pin
lightofheaven21-Mar-13 17:44
lightofheaven21-Mar-13 17:44 
AnswerRe: about the time period Pin
Boipelo21-Mar-13 21:07
Boipelo21-Mar-13 21:07 
QuestionHow to Draw Circles on GUI? Pin
Stuck At Zero21-Mar-13 10:32
Stuck At Zero21-Mar-13 10:32 
JokeRe: How to Draw Circles on GUI? Pin
Matt T Heffron21-Mar-13 10:54
professionalMatt T Heffron21-Mar-13 10:54 
AnswerRe: How to Draw Circles on GUI? Pin
Richard MacCutchan21-Mar-13 23:41
mveRichard MacCutchan21-Mar-13 23:41 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero22-Mar-13 5:33
Stuck At Zero22-Mar-13 5:33 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan22-Mar-13 8:00
mveRichard MacCutchan22-Mar-13 8:00 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero22-Mar-13 10:05
Stuck At Zero22-Mar-13 10:05 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz22-Mar-13 14:39
mveGerry Schmitz22-Mar-13 14:39 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero22-Mar-13 14:56
Stuck At Zero22-Mar-13 14:56 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz22-Mar-13 17:43
mveGerry Schmitz22-Mar-13 17:43 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero25-Mar-13 10:28
Stuck At Zero25-Mar-13 10:28 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan22-Mar-13 23:19
mveRichard MacCutchan22-Mar-13 23:19 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz23-Mar-13 8:57
mveGerry Schmitz23-Mar-13 8:57 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero25-Mar-13 10:30
Stuck At Zero25-Mar-13 10:30 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan22-Mar-13 23:23
mveRichard MacCutchan22-Mar-13 23:23 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz23-Mar-13 9:01
mveGerry Schmitz23-Mar-13 9:01 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan23-Mar-13 22:18
mveRichard MacCutchan23-Mar-13 22:18 
GeneralRe: How to Draw Circles on GUI? Pin
Gerry Schmitz24-Mar-13 21:37
mveGerry Schmitz24-Mar-13 21:37 
GeneralRe: How to Draw Circles on GUI? Pin
Richard MacCutchan24-Mar-13 23:31
mveRichard MacCutchan24-Mar-13 23:31 
AnswerRe: How to Draw Circles on GUI? Pin
Abhinav S22-Mar-13 16:43
Abhinav S22-Mar-13 16:43 
AnswerRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 0:14
cjb11025-Mar-13 0:14 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero25-Mar-13 10:19
Stuck At Zero25-Mar-13 10:19 
GeneralRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 21:37
cjb11025-Mar-13 21:37 
QuestionBest way to read string xml? [Solved] Pin
Boipelo21-Mar-13 7:58
Boipelo21-Mar-13 7:58 
Fisrt let me say I dont have errors and all is working fine, I want to know the best way of doing this... I am consumming a web serving that return string xml...
XML
<pre><api_result><data><credits>33</credits></data><call_result><result>True</result><error /></call_result></api_result>

I want the value "33", have the following and it works fine but wanted to know it's the right way to go...
C#
string sReturnString = WebserviceName.ReturnMyValue(PassingSomeValues);
foreach (char cString in sReturnString.ToCharArray())
{
    if (char.IsDigit(cString))
        sCredits += cString.ToString();
}
return "Balance: sCredits";


I don't want to save it to a file, but just want to dislapy the value. Any recommnedations?
Thanking you in advance.

Addition: ..
Saving it to an xml file makes it easy to read the creadit element value <credits>33; but I dont want to create any files..
I remain joe!


modified 21-Mar-13 15:33pm.

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.