I have an excel worksheet with the following fields:
HTML:
Name Address Date Amount
A ABC XX 1253
B BHCN IJ 2156
I would like to select only name and amount and display on labels (I treat name as the primary key in this case). Is this possible in basic4android? Kindly assist
1. Upload xls (not xlsx) from you app to your webserver
2. call the php-script from your app which reads the xls and response the data as jsonstring back to your app
Read the file line for line
split one line (with Regex.split) on each "," to get the values of this line...
iterate through all lines to get the values you need.
But i prefer to suggest to read the beginners guide. Do your first steps and then you use the forum search to find examples of how to do the above...
Regex Split is not the right way to parse a CSV, using StringUtils will load the CSV into a List and the rows are an array, there are samples posted on the forums.
Dim workbook1 As ReadableWorkbook
Dim moviesSheet As ReadableSheet
workbook1.Initialize(Dir, FileName)
moviesSheet = workbook1.GetSheet(0)
Log(moviesSheet.GetCellValue(0, 0))
Log(moviesSheet.GetCellValue(0, 1))