How can i access the individual records based on Index in Stringlist after loading this CSV file in to it.
CSV Example:
Record0;Record1;Record2
Record0;Record1;Record2
Record0;Record1;Record2
Record0;Record1;Record2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SplitStringwill split your string with delimiters you define.In this example space and ; character.
Update
Added an example of an indexed split function. (
SplitByIndex).Update 2
Added an example (
SplitByIndexAlt) not usingSplitString, butTStringList.DelimitedText.This will treat spaces and ; as delimiter (not the ones enclosed by
QuoteChar).The output here will look like:
Now consider that a CSV file format is not standardised, see CSV Wiki.
So for a more general solution the solution might look more complex.