Click here to Skip to main content
15,916,835 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed help on String manipulation Pin
Slow Learner22-Feb-06 5:20
Slow Learner22-Feb-06 5:20 
AnswerRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 5:23
Jason McBurney22-Feb-06 5:23 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 5:37
Slow Learner22-Feb-06 5:37 
GeneralRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 5:44
Jason McBurney22-Feb-06 5:44 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 5:52
Slow Learner22-Feb-06 5:52 
GeneralRe: Need help on String manipulation Pin
Jason McBurney22-Feb-06 6:36
Jason McBurney22-Feb-06 6:36 
GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 8:14
Slow Learner22-Feb-06 8:14 
GeneralRe: Need help on String manipulation Pin
Guffa22-Feb-06 9:53
Guffa22-Feb-06 9:53 
If you would like the code to be more efficient, you should get rid of the Split all together (as that creates at least two strings that you don't even use). Use IndexOf to locate the first and second "_" in the string, then use Substring to get the part of the string in between.

Still I agree with Jason's opinion that most of the code doesn't need to be optimized to the max. Consider how often the code will be used, and how much resources it uses compared to the surronding code.

Simple code that works is always better than optimized code that doesn't. Wink | ;)

---
b { font-weight: normal; }

GeneralRe: Need help on String manipulation Pin
Slow Learner22-Feb-06 10:57
Slow Learner22-Feb-06 10:57 
AnswerRe: Need help on String manipulation Pin
Guffa22-Feb-06 11:52
Guffa22-Feb-06 11:52 
Questionvb.net problem Pin
pankajgarg1222-Feb-06 4:53
pankajgarg1222-Feb-06 4:53 
AnswerRe: vb.net problem Pin
Jason McBurney22-Feb-06 8:56
Jason McBurney22-Feb-06 8:56 
Question[Message Deleted] Pin
Rashar22-Feb-06 3:32
Rashar22-Feb-06 3:32 
AnswerRe: How can I load a dataset with a variable from form1? Pin
AlexeiXX322-Feb-06 6:07
AlexeiXX322-Feb-06 6:07 
QuestionVB.net problem Pin
Member 158774122-Feb-06 3:30
Member 158774122-Feb-06 3:30 
QuestionUsing DAO to Create DBASE Files From VB Pin
TJWH22-Feb-06 2:21
TJWH22-Feb-06 2:21 
AnswerRe: Using DAO to Create DBASE Files From VB Pin
Divya Rathi22-Feb-06 3:36
Divya Rathi22-Feb-06 3:36 
GeneralRe: Using DAO to Create DBASE Files From VB Pin
TJWH23-Feb-06 1:30
TJWH23-Feb-06 1:30 
GeneralRe: Using DAO to Create DBASE Files From VB Pin
Divya Rathi23-Feb-06 5:27
Divya Rathi23-Feb-06 5:27 
Questionhow to add RichTextBox To DataGridView Pin
Mehrafrooz22-Feb-06 1:33
Mehrafrooz22-Feb-06 1:33 
QuestionCreate a backup program Pin
jerseyden22-Feb-06 1:17
jerseyden22-Feb-06 1:17 
AnswerRe: Create a backup program Pin
japel22-Feb-06 1:36
japel22-Feb-06 1:36 
QuestionRe: Create a backup program Pin
jerseyden22-Feb-06 1:45
jerseyden22-Feb-06 1:45 
QuestionI want to create a Datagrid column having DropDownList control just like ASP .NET. Pin
Pankaj Kulkarni22-Feb-06 0:54
Pankaj Kulkarni22-Feb-06 0:54 
QuestionDrag&Drop onto Form without Controls Pin
ibexcentral22-Feb-06 0:08
ibexcentral22-Feb-06 0:08 

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.