Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
Generalstring replace() problem Pin
sysmatrix7-Jun-05 13:45
sysmatrix7-Jun-05 13:45 
GeneralRe: string replace() problem Pin
Alex Korchemniy7-Jun-05 14:05
Alex Korchemniy7-Jun-05 14:05 
GeneralRe: string replace() problem Pin
Christian Graus7-Jun-05 14:06
protectorChristian Graus7-Jun-05 14:06 
GeneralRe: string replace() problem Pin
MoustafaS7-Jun-05 14:18
MoustafaS7-Jun-05 14:18 
GeneralRe: string replace() problem Pin
S Sansanwal7-Jun-05 16:38
S Sansanwal7-Jun-05 16:38 
GeneralRe: string replace() problem Pin
nemopeti8-Jun-05 5:00
nemopeti8-Jun-05 5:00 
QuestionWebService SoapInclude, custom classes? Pin
methodincharge7-Jun-05 13:28
methodincharge7-Jun-05 13:28 
QuestionWhats wrong with this? Pin
Tom Wright7-Jun-05 12:35
Tom Wright7-Jun-05 12:35 
I get a compiler error that not all code paths return an error. I'm fairly new at C# so did something change from MFC to C#?

<br />
		public bool ConfirmSQLServer()<br />
		{<br />
			String SrvrName;<br />
			SQLutilz sie = new SQLutilz();<br />
<br />
			IniFile ini = new IniFile("C:\\Larimore\\Prog\\LA.CFG");<br />
			SrvrName = ini.IniReadValue("DATABASE","Server");<br />
			ResultsLst.Items.Add("Database Server: " + SrvrName, 0);<br />
			String[] SrvrLst = sie.EnumerateSQLServers();<br />
<br />
			for (int i = 0; i<SrvrLst.Length;i++)<br />
			{<br />
				MessageBox.Show(SrvrLst[i].ToString()+ " " + SrvrName.ToUpper());<br />
				if (SrvrName.ToUpper().CompareTo(SrvrLst[i].ToString())== 0)<br />
				        return true;<br />
				else<br />
					return false;<br />
			}<br />
		}<br />
<br />
<br />

Thanks


Tom Wright
tawright915@yahoo.com
AnswerRe: Whats wrong with this? Pin
eddieg767-Jun-05 13:49
eddieg767-Jun-05 13:49 
AnswerRe: Whats wrong with this? Pin
Christian Graus7-Jun-05 14:08
protectorChristian Graus7-Jun-05 14:08 
GeneralRe: Whats wrong with this? Pin
Robert Rohde7-Jun-05 19:38
Robert Rohde7-Jun-05 19:38 
GeneralRe: Whats wrong with this? Pin
Dan Neely8-Jun-05 2:51
Dan Neely8-Jun-05 2:51 
GeneralRe: Whats wrong with this? Pin
Tom Wright8-Jun-05 7:26
Tom Wright8-Jun-05 7:26 
GeneralRe: Whats wrong with this? Pin
Christian Graus8-Jun-05 13:33
protectorChristian Graus8-Jun-05 13:33 
Generalcreate a text file in c# Pin
Farhad Eft7-Jun-05 12:13
Farhad Eft7-Jun-05 12:13 
GeneralRe: create a text file in c# Pin
Christian Graus7-Jun-05 12:27
protectorChristian Graus7-Jun-05 12:27 
GeneralRe: create a text file in c# Pin
nemopeti8-Jun-05 5:10
nemopeti8-Jun-05 5:10 
Generalsetting the property for radioButtons Pin
abhishk2001@yahoo.com7-Jun-05 12:07
abhishk2001@yahoo.com7-Jun-05 12:07 
GeneralRe: setting the property for radioButtons Pin
S Sansanwal7-Jun-05 16:39
S Sansanwal7-Jun-05 16:39 
Generalload a multileve png Pin
Sasuko7-Jun-05 11:18
Sasuko7-Jun-05 11:18 
GeneralGetting selected value of databound combobox Pin
greg_quinn7-Jun-05 11:06
greg_quinn7-Jun-05 11:06 
GeneralRe: Getting selected value of databound combobox Pin
Alex Korchemniy7-Jun-05 14:01
Alex Korchemniy7-Jun-05 14:01 
GeneralLaboratory Data Program in C# Pin
dr4davis7-Jun-05 9:37
dr4davis7-Jun-05 9:37 
GeneralRe: Laboratory Data Program in C# Pin
Christian Graus7-Jun-05 12:31
protectorChristian Graus7-Jun-05 12:31 
GeneralRe: Laboratory Data Program in C# Pin
dr4davis7-Jun-05 14:55
dr4davis7-Jun-05 14:55 

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.