Click here to Skip to main content
12,446,418 members (58,448 online)

Visual Basic

 
AnswerRe: Anyone have a program where I can enter a username and have it provide info from Active Directory? Pin
Simon_Whale15-Feb-13 14:17
memberSimon_Whale15-Feb-13 14:17 
Questionmathematical expression with custom user input operand separately Pin
arave052114-Feb-13 6:12
memberarave052114-Feb-13 6:12 
AnswerRe: mathematical expression with custom user input operand separately Pin
Jibesh15-Feb-13 7:57
memberJibesh15-Feb-13 7:57 
AnswerRe: mathematical expression with custom user input operand separately Pin
Eddy Vluggen15-Feb-13 10:17
mvpEddy Vluggen15-Feb-13 10:17 
QuestionZoom in / Zoom Out functions Pin
syllar12-Feb-13 21:55
membersyllar12-Feb-13 21:55 
AnswerRe: Zoom in / Zoom Out functions Pin
Dave Kreskowiak13-Feb-13 2:07
mvpDave Kreskowiak13-Feb-13 2:07 
AnswerRe: Zoom in / Zoom Out functions Pin
Simon_Whale13-Feb-13 2:23
memberSimon_Whale13-Feb-13 2:23 
QuestionEditing columns in a CSV File Pin
Mike Prophete12-Feb-13 11:29
memberMike Prophete12-Feb-13 11:29 
Hello Commmunity,

I am very new to VB and would like some help with a small project. I am trying to modify a column in a csv file and save my changes to a new csv file. Here is a sample of my file:

firstname, lastname, phone, email
john, smith, 1111111111, jsmith@someone.com
brad, green, 2222222222, bgreen@someone.com

I would like to search for value 'phone' in the column and replace it with 'cell phone' or change any existing column name with a new value.

firstname, lastname, cell phone, email
john, smith, 1111111111, jsmith@someone.com
brad, green, 2222222222, bgreen@someone.com

I found a few examples to import the csv into a datatable but I have not found a solution that would allow for an empty value from the orginal csv file into VB datatable. Here is an example:

Import File:
firstname, lastname, phone, email
john, smith, 1111111111, jsmith@someone.com
brad, green, 2222222222, bgreen@someone.com
sam, brown, 3333333333, ,
mike, black, , mblack@somesone.com

Export File should be this:
firstname, lastname, cell phone, email
john, smith, 1111111111, jsmith@someone.com
brad, green, 2222222222, bgreen@someone.com
sam, brown, 3333333333, ,
mike, black, , mblack@somesone.com

Thank you,

Mike
AnswerRe: Editing columns in a CSV File Pin
Eddy Vluggen13-Feb-13 9:13
mvpEddy Vluggen13-Feb-13 9:13 
AnswerRe: Editing columns in a CSV File Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 3:57
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 3:57 
QuestionHelp required in grid conditon Pin
siddisagar12-Feb-13 4:09
membersiddisagar12-Feb-13 4:09 
Questionant colony algorithm Pin
showdowngh12-Feb-13 3:20
membershowdowngh12-Feb-13 3:20 
AnswerRe: ant colony algorithm Pin
Simon_Whale12-Feb-13 3:57
memberSimon_Whale12-Feb-13 3:57 
AnswerRe: ant colony algorithm Pin
Dave Kreskowiak12-Feb-13 11:47
mvpDave Kreskowiak12-Feb-13 11:47 
QuestionHow to add Listview subitem with For Loop Pin
kurja-kurdoh9-Feb-13 17:58
memberkurja-kurdoh9-Feb-13 17:58 
AnswerRe: How to add Listview subitem with For Loop Pin
Richard MacCutchan9-Feb-13 21:44
mvpRichard MacCutchan9-Feb-13 21:44 
GeneralRe: How to add Listview subitem with For Loop Pin
kurja-kurdoh19-Feb-13 6:38
memberkurja-kurdoh19-Feb-13 6:38 
GeneralRe: How to add Listview subitem with For Loop Pin
Richard MacCutchan19-Feb-13 6:59
mvpRichard MacCutchan19-Feb-13 6:59 
GeneralRe: How to add Listview subitem with For Loop Pin
kurja-kurdoh19-Feb-13 18:02
memberkurja-kurdoh19-Feb-13 18:02 
GeneralRe: How to add Listview subitem with For Loop Pin
Richard MacCutchan19-Feb-13 21:50
mvpRichard MacCutchan19-Feb-13 21:50 
Questionvb6 code for grow island or grow valley game Pin
Shiela Alvarez7-Feb-13 14:25
memberShiela Alvarez7-Feb-13 14:25 
AnswerRe: vb6 code for grow island or grow valley game Pin
Dave Kreskowiak7-Feb-13 18:48
mvpDave Kreskowiak7-Feb-13 18:48 
GeneralRe: vb6 code for grow island or grow valley game Pin
Shiela Alvarez23-Feb-13 4:34
memberShiela Alvarez23-Feb-13 4:34 
GeneralRe: vb6 code for grow island or grow valley game Pin
Dave Kreskowiak23-Feb-13 5:16
mvpDave Kreskowiak23-Feb-13 5:16 
QuestionThis File has been modified outside the source editor. Pin
QuickBooksDev5-Feb-13 3:53
memberQuickBooksDev5-Feb-13 3:53 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 24 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid