I'm trying to populate an array. Instead of slots looking like "Accomodation","Ceremony","Transport" etc. they are being populated as below the code. Any kind person who can help? (I suspect I should build up a delimited string then 'split' it...)
var sDesc;
var sId;
var sM1;
var sM2;
var scatDesc = new Array(12);
var scatId = new Array(12);
var sMover1 = new Array(12);
var sMover2 = new Array(12);
var i = 0;
while (!(loRS.Eof))
{
sDesc = loRS("Description"
sId = loRS("CatId"
sM1 = loRS("Mover1"
sM2 = loRS("Mover2"
scatDesc = sDesc;
Response.Write(scatDesc);
Response.Write(i);
Response.Write("<br>"
scatId = sId;
sMover1 = sM1;
sMover2 = sM2;
loRS.MoveNext();
i++;
}
loRS = null;
//PROBLEM
//RESULT OF "Response.Write(scatDesc)" below:
//Accommodation,,,,,,,,,,,
//Ceremony,Ceremony,Ceremony,Ceremony,Ceremony...etc
//Transport,Transport,Transport,Transport,Transport....etc
var sDesc;
var sId;
var sM1;
var sM2;
var scatDesc = new Array(12);
var scatId = new Array(12);
var sMover1 = new Array(12);
var sMover2 = new Array(12);
var i = 0;
while (!(loRS.Eof))
{
sDesc = loRS("Description"
sId = loRS("CatId"
sM1 = loRS("Mover1"
sM2 = loRS("Mover2"
scatDesc = sDesc;
Response.Write(scatDesc);
Response.Write(i);
Response.Write("<br>"
scatId = sId;
sMover1 = sM1;
sMover2 = sM2;
loRS.MoveNext();
i++;
}
loRS = null;
//PROBLEM
//RESULT OF "Response.Write(scatDesc)" below:
//Accommodation,,,,,,,,,,,
//Ceremony,Ceremony,Ceremony,Ceremony,Ceremony...etc
//Transport,Transport,Transport,Transport,Transport....etc