B
ben.r.wood
I am not entirely sure, but after scanning the web believe I need to
use multi-dimensional arrays for my problem - although I have not seen
any examples of what I am trying to achieve.
I have a form with one field, for which a user will submit a lump of
delimited data. The data will always be in the same format, ie. 5
fields per record, each field has a delimeter and a new row starts a
new record.
for example:
field1record1 , field2record1 , field3record1 , field4record1 ,
field5record1
field1record2 , field2record2 , field3record2 , field4record2 ,
field5record2
......
There are an unknown number of records on submission.
As I know the number of fields per record (5) can I determine the
number of records by using ubound(myarray) / 5?
I ultimately want to loop through each field of each record and so I
can update the database. I have read about:
- using the split function to seperate the 5 fields
- determining the number of records using ubound function
- creating multi-dimension arrays
but I am not sure how to put them together. Any direction would be
appreciated
use multi-dimensional arrays for my problem - although I have not seen
any examples of what I am trying to achieve.
I have a form with one field, for which a user will submit a lump of
delimited data. The data will always be in the same format, ie. 5
fields per record, each field has a delimeter and a new row starts a
new record.
for example:
field1record1 , field2record1 , field3record1 , field4record1 ,
field5record1
field1record2 , field2record2 , field3record2 , field4record2 ,
field5record2
......
There are an unknown number of records on submission.
As I know the number of fields per record (5) can I determine the
number of records by using ubound(myarray) / 5?
I ultimately want to loop through each field of each record and so I
can update the database. I have read about:
- using the split function to seperate the 5 fields
- determining the number of records using ubound function
- creating multi-dimension arrays
but I am not sure how to put them together. Any direction would be
appreciated