jacknbey
12-05-2004, 11:21 AM
Hi All,
Need help :)
I have an asp POST FORM with the following multi-value parameters passed to next ASP page.
RecordName = Record1, Record2, Record3
Number = 1, 2, 3
Code = A, B, C
Currency = AUD, USD, EUR
Value = 800, 600, 400
I need to insert new records into SQL database as followed:-
RecordName(nvarchar),Number(nvarchar),Code(nvarchar),Currency(nvarchar),Value(money)
Record1,1,A,AUD,800
Record2,2,B,USD,600
Record3,3,C,EUR,400
How do I use the For Each loop (or in fact anything will do) to parse them into the the above record?
If I use :-
For Each RecordName
For Each Number
For each Code
.
.
.
Next
Next
Next
It seems ridiculously redundant to me.
Can I use:-
For Each RecordName,Number,Code... instead?
Thanks all...
Need help :)
I have an asp POST FORM with the following multi-value parameters passed to next ASP page.
RecordName = Record1, Record2, Record3
Number = 1, 2, 3
Code = A, B, C
Currency = AUD, USD, EUR
Value = 800, 600, 400
I need to insert new records into SQL database as followed:-
RecordName(nvarchar),Number(nvarchar),Code(nvarchar),Currency(nvarchar),Value(money)
Record1,1,A,AUD,800
Record2,2,B,USD,600
Record3,3,C,EUR,400
How do I use the For Each loop (or in fact anything will do) to parse them into the the above record?
If I use :-
For Each RecordName
For Each Number
For each Code
.
.
.
Next
Next
Next
It seems ridiculously redundant to me.
Can I use:-
For Each RecordName,Number,Code... instead?
Thanks all...