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

Visual Basic

 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 22:22
frankiebaby223-Jul-07 22:22 
QuestionHTML Editor in Vb.net Pin
phyrrix22-Jul-07 6:46
phyrrix22-Jul-07 6:46 
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 
Hi,

first of all you will not win a special prize for trying to do all your stuff in a single
line of code; instead you will loose points for unintelligible code.

What you need is locate the start point of your string to be replaced (you have that already);
from there, find the next newline (use an overload of IndexOf that lets you specify a starting point);
then perform the necessary replacement, which requires two String.Substring calls (the
Replace method might "hit" several times!).
And you need to handle the special case when no newline is found too.

so in the end that will take about 5 lines of simple code.

Smile | :)


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 
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 

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.