Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
QuestionRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:02
gapfulgence30-Jul-07 6:02 
AnswerRe: My variables content appear in hexadecimal Pin
PhilDanger30-Jul-07 6:08
PhilDanger30-Jul-07 6:08 
GeneralRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:09
gapfulgence30-Jul-07 6:09 
AnswerRe: My variables content appear in hexadecimal Pin
Bert delaVega30-Jul-07 6:12
Bert delaVega30-Jul-07 6:12 
GeneralRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:52
gapfulgence30-Jul-07 6:52 
QuestionSharp Develop Regular Expression Pin
xawsccs30-Jul-07 5:38
xawsccs30-Jul-07 5:38 
AnswerRe: Sharp Develop Regular Expression Pin
led mike30-Jul-07 5:49
led mike30-Jul-07 5:49 
AnswerRe: Sharp Develop Regular Expression Pin
Martin#30-Jul-07 6:00
Martin#30-Jul-07 6:00 
For that task, the string methods are also good enough!
string AllText="TCatalog: OK<BR>DATSVR: OK<BR>";
string searchstring ="TCatalog:";
string result="";
int startindex = AllText.IndexOf(searchstring);
if(startindex>=0)
{
    int endindex = AllText.IndexOf("<", startindex);
    if(endindex>=0)
    {
	result= AllText.Substring(startindex+ searchstring.Length, endindex- searchstring.Length).Trim();
    }
}



All the best,

Martin

GeneralRe: Sharp Develop Regular Expression Pin
xawsccs31-Jul-07 6:25
xawsccs31-Jul-07 6:25 
AnswerRe: Sharp Develop Regular Expression Pin
Paul Conrad30-Jul-07 6:22
professionalPaul Conrad30-Jul-07 6:22 
QuestionAccess to the class variable in the Program.cs Pin
UweOeder30-Jul-07 5:31
professionalUweOeder30-Jul-07 5:31 
AnswerRe: Access to the class variable in the Program.cs Pin
led mike30-Jul-07 5:47
led mike30-Jul-07 5:47 
AnswerRe: Access to the class variable in the Program.cs Pin
PhilDanger30-Jul-07 6:05
PhilDanger30-Jul-07 6:05 
GeneralRe: Access to the class variable in the Program.cs Pin
UweOeder30-Jul-07 21:00
professionalUweOeder30-Jul-07 21:00 
QuestionDataGridView Max Rows Pin
jasper01830-Jul-07 5:22
jasper01830-Jul-07 5:22 
AnswerRe: DataGridView Max Rows Pin
led mike30-Jul-07 5:26
led mike30-Jul-07 5:26 
QuestionC# Prep Statement doesn't insert string Pin
NRworld30-Jul-07 4:43
NRworld30-Jul-07 4:43 
AnswerRe: C# Prep Statement doesn't insert string Pin
Pete O'Hanlon30-Jul-07 9:49
mvePete O'Hanlon30-Jul-07 9:49 
GeneralRe: C# Prep Statement doesn't insert string Pin
PIEBALDconsult30-Jul-07 11:23
mvePIEBALDconsult30-Jul-07 11:23 
Questioncomand line Pin
ankit_mait30-Jul-07 4:30
ankit_mait30-Jul-07 4:30 
AnswerRe: comand line Pin
CPallini30-Jul-07 4:38
mveCPallini30-Jul-07 4:38 
QuestionIs there a way to disable "Close" button on title bar? Pin
Tesic Goran30-Jul-07 4:21
professionalTesic Goran30-Jul-07 4:21 
AnswerRe: Is there a way to disable "Close" button on title bar? Pin
originSH30-Jul-07 4:52
originSH30-Jul-07 4:52 
GeneralRe: Is there a way to disable &amp;quot;Close&amp;quot; button on title bar? [modified] Pin
Tesic Goran30-Jul-07 5:02
professionalTesic Goran30-Jul-07 5:02 
GeneralRe: Is there a way to disable &amp;quot;Close&amp;quot; button on title bar? Pin
originSH30-Jul-07 5:20
originSH30-Jul-07 5:20 

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.