Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: Method Returns Twice Pin
Expert Coming3-Aug-06 19:06
Expert Coming3-Aug-06 19:06 
GeneralRe: Method Returns Twice Pin
Daniel Turini3-Aug-06 20:21
Daniel Turini3-Aug-06 20:21 
AnswerRe: Method Returns Twice Pin
Guffa5-Aug-06 13:36
Guffa5-Aug-06 13:36 
QuestionRe: Method Returns Twice Pin
Shajeel3-Aug-06 20:20
Shajeel3-Aug-06 20:20 
AnswerRe: Method Returns Twice Pin
Expert Coming3-Aug-06 20:27
Expert Coming3-Aug-06 20:27 
GeneralRe: Method Returns Twice Pin
Shajeel3-Aug-06 20:38
Shajeel3-Aug-06 20:38 
GeneralRe: Method Returns Twice [modified] Pin
lmoelleb3-Aug-06 20:44
lmoelleb3-Aug-06 20:44 
AnswerRe: Method Returns Twice Pin
Christian Graus3-Aug-06 20:52
protectorChristian Graus3-Aug-06 20:52 
ExpertComing wrote:
foreach(Match m in matches)
{
szInformation = (szWhatFor + ": " + m.Groups["mmatch"]);
}


Why would you step through all the matches and not accumulate their contents ? Why not just ask for the last one in the group, it's the only one you're going to get.

You need to post the calling code. This code cannot return twice, no code can. You must be calling it twice. However, I do note that your return value is not created within the call, perhaps it's being a member variable is somehow contributing to the problem.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: Method Returns Twice Pin
Expert Coming3-Aug-06 21:31
Expert Coming3-Aug-06 21:31 
GeneralRe: Method Returns Twice Pin
Guffa5-Aug-06 13:45
Guffa5-Aug-06 13:45 
AnswerRe: Method Returns Twice Pin
leppie3-Aug-06 21:30
leppie3-Aug-06 21:30 
QuestionProblem including C++ code in C# assembly Pin
OrcBighter23-Aug-06 15:49
OrcBighter23-Aug-06 15:49 
AnswerRe: Problem including C++ code in C# assembly Pin
Christian Graus3-Aug-06 16:31
protectorChristian Graus3-Aug-06 16:31 
QuestionCreate Combo Box In ListView in Pocket PC App. Pin
kakarato3-Aug-06 15:44
kakarato3-Aug-06 15:44 
QuestionFree Database for .NET Pin
Tyler453-Aug-06 15:22
Tyler453-Aug-06 15:22 
AnswerRe: Free Database for .NET Pin
Furty3-Aug-06 15:49
Furty3-Aug-06 15:49 
QuestionRe: Free Database for .NET Pin
Tyler453-Aug-06 15:53
Tyler453-Aug-06 15:53 
AnswerRe: Free Database for .NET Pin
Furty3-Aug-06 15:58
Furty3-Aug-06 15:58 
AnswerRe: Free Database for .NET Pin
Tyler453-Aug-06 16:01
Tyler453-Aug-06 16:01 
QuestionSimple(?) Generics question [modified] Pin
Furty3-Aug-06 15:10
Furty3-Aug-06 15:10 
AnswerRe: Simple(?) Generics question Pin
Christian Graus3-Aug-06 16:33
protectorChristian Graus3-Aug-06 16:33 
AnswerRe: Simple(?) Generics question Pin
leppie3-Aug-06 21:34
leppie3-Aug-06 21:34 
Questionprinting forms Pin
TWatson473-Aug-06 12:56
TWatson473-Aug-06 12:56 
AnswerRe: printing forms Pin
Not Active3-Aug-06 14:37
mentorNot Active3-Aug-06 14:37 
GeneralRe: printing forms Pin
TWatson474-Aug-06 4:50
TWatson474-Aug-06 4:50 

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.