vb.net - Parsing a semi colon delimited String -


i required write program visual basic 2008 in process delimited string formatted such:

word;submitter;correctguesses;incorrectguesses 

i need able edit number of correct or incorrect guesses when matching value found both word , submitter. believe may need use combination of instr , mid functions, have little knowledge of how these work.

if explain these functions in context, and/or possibly provide code achieve this, preferably commented can see how functions working. me complete final part of project.

added more code tinstaafi's answer. however, highlight fact has solved crux of problem.

dim correct integer dim incorrect integer  dim mystring string = "word;submitter;correctguesses;incorrectguesses" dim mystringsplit() string = mystring.split(";")  correct = mystringsplit(2)  incorrect = mystringsplit(3)  ' if answer correct     correct = correct + 1  'if answer incorrect     incorrect = incorrect + 1  mystringsplit(2) = cstr(correct) mystringsplit(3) = cstr(incorrect)  dim mynewstring string = string.join(";", mystringsplit) 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -