Click here to Skip to main content
15,912,021 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: HTML Editor in Vb.net Pin
ne0h22-Jul-07 7:02
ne0h22-Jul-07 7:02 
AnswerRe: HTML Editor in Vb.net Pin
Naji El Kotob22-Jul-07 8:08
Naji El Kotob22-Jul-07 8:08 
Questionupdateing db Pin
stupid122-Jul-07 3:26
stupid122-Jul-07 3:26 
AnswerRe: updateing db Pin
stupid122-Jul-07 3:27
stupid122-Jul-07 3:27 
QuestionHow to replace text until end of the line? Pin
sweehin1822-Jul-07 2:18
sweehin1822-Jul-07 2:18 
AnswerRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 2:44
sitebuilderLuc Pattyn22-Jul-07 2:44 
GeneralRe: How to replace text until end of the line? Pin
sweehin1822-Jul-07 2:59
sweehin1822-Jul-07 2:59 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 3:32
sitebuilderLuc Pattyn22-Jul-07 3:32 
Hi,

this is what I meant in pseudo-code (I cant help it if it looks very much like C#);
myText is the string to be manipulated.

int startIndex=myText.IndexOf(theStringThatMarksTheBeginOfReplace);
if (startIndex>=0) {
    int endMarkLen=theStringThatMarksTheEndOfReplace.Length;
    int endIndex=myText.IndexOf(theStringThatMarksTheEndOfReplace, startIndex);
    if (endIndex<0) myText=text.Substring(0,startIndex);
    else myText=myText.Substring(0,startIndex)+myText.SubString(endIndex+endMarkLen);
}


That should do it. I suggest you read MSDN on any method you are unfamiliar with.

Smile | :)





GeneralRe: How to replace text until end of the line? Pin
sweehin1823-Jul-07 4:59
sweehin1823-Jul-07 4:59 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 5:22
sitebuilderLuc Pattyn23-Jul-07 5:22 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 5:23
sitebuilderLuc Pattyn23-Jul-07 5:23 
GeneralRe: How to replace text until end of the line? Pin
sweehin1823-Jul-07 9:16
sweehin1823-Jul-07 9:16 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 9:36
sitebuilderLuc Pattyn23-Jul-07 9:36 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 3:41
sitebuilderLuc Pattyn22-Jul-07 3:41 
GeneralRe: How to replace text until end of the line? Pin
sweehin1822-Jul-07 6:42
sweehin1822-Jul-07 6:42 
QuestionI have problem Pin
wayen22-Jul-07 1:53
wayen22-Jul-07 1:53 
AnswerRe: I have problem Pin
Sathesh Sakthivel22-Jul-07 4:07
Sathesh Sakthivel22-Jul-07 4:07 
GeneralRe: I have problem Pin
Paul Conrad22-Jul-07 5:38
professionalPaul Conrad22-Jul-07 5:38 
AnswerSearch and thou shall find Pin
Luc Pattyn22-Jul-07 9:51
sitebuilderLuc Pattyn22-Jul-07 9:51 
GeneralRe: Search and thou shall find Pin
Paul Conrad22-Jul-07 10:27
professionalPaul Conrad22-Jul-07 10:27 
JokeRe: Search and thou shall find Pin
Luc Pattyn22-Jul-07 10:46
sitebuilderLuc Pattyn22-Jul-07 10:46 
GeneralRe: Search and thou shall find Pin
Paul Conrad22-Jul-07 11:12
professionalPaul Conrad22-Jul-07 11:12 
GeneralRe: Search and thou shall find Pin
Sathesh Sakthivel22-Jul-07 15:58
Sathesh Sakthivel22-Jul-07 15:58 
QuestionTraffic Monitoring System Pin
Jshuwa21-Jul-07 16:39
Jshuwa21-Jul-07 16:39 
AnswerRe: Traffic Monitoring System Pin
Psycho-*Coder*-Extreme21-Jul-07 17:22
Psycho-*Coder*-Extreme21-Jul-07 17:22 

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.