Click here to Skip to main content

Visual Basic

 
AnswerRe: Anyone have a program where I can enter a username and have it provide info from Active Directory? PinmemberSimon_Whale15-Feb-13 15:17 
Questionmathematical expression with custom user input operand separately Pinmemberarave052114-Feb-13 7:12 
AnswerRe: mathematical expression with custom user input operand separately PinmemberJibesh15-Feb-13 8:57 
AnswerRe: mathematical expression with custom user input operand separately PinmvpEddy Vluggen15-Feb-13 11:17 
QuestionZoom in / Zoom Out functions Pinmembersyllar12-Feb-13 22:55 
AnswerRe: Zoom in / Zoom Out functions PinmvpDave Kreskowiak13-Feb-13 3:07 
AnswerRe: Zoom in / Zoom Out functions PinmemberSimon_Whale13-Feb-13 3:23 
QuestionEditing columns in a CSV File PinmemberMike Prophete12-Feb-13 12: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 PinmvpEddy Vluggen13-Feb-13 10:13 
AnswerRe: Editing columns in a CSV File PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 4:57 
QuestionHelp required in grid conditon Pinmembersiddisagar12-Feb-13 5:09 
Questionant colony algorithm Pinmembershowdowngh12-Feb-13 4:20 
AnswerRe: ant colony algorithm PinmemberSimon_Whale12-Feb-13 4:57 
AnswerRe: ant colony algorithm PinmvpDave Kreskowiak12-Feb-13 12:47 
QuestionHow to add Listview subitem with For Loop Pinmemberkurja-kurdoh9-Feb-13 18:58 
AnswerRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan9-Feb-13 22:44 
GeneralRe: How to add Listview subitem with For Loop Pinmemberkurja-kurdoh19-Feb-13 7:38 
GeneralRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan19-Feb-13 7:59 
GeneralRe: How to add Listview subitem with For Loop Pinmemberkurja-kurdoh19-Feb-13 19:02 
GeneralRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan19-Feb-13 22:50 
Questionvb6 code for grow island or grow valley game PinmemberShiela Alvarez7-Feb-13 15:25 
AnswerRe: vb6 code for grow island or grow valley game PinmvpDave Kreskowiak7-Feb-13 19:48 
GeneralRe: vb6 code for grow island or grow valley game PinmemberShiela Alvarez23-Feb-13 5:34 
GeneralRe: vb6 code for grow island or grow valley game PinmvpDave Kreskowiak23-Feb-13 6:16 
QuestionThis File has been modified outside the source editor. PinmemberQuickBooksDev5-Feb-13 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.150302.1 | Last Updated 4 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid