K
kilsoft
I am creating a web form to generate a calculation based on a 2 digit
input from a user. Depending on their input it creates an array prefix
of numbers. The 2nd part of the array comes from an access database
where it holds the next available number. This is where the problem
sets in, when I pull the 8 digit number from the db I cannot get it
into an array. I need each digit split apart into the array. I can read
it as an Int but am not sure how to read it as an array.
Ultimately I need to merge the array prefix with the array from the db
so I can do a calculation on each digit.
Any help is appreciated. Thanks.
// code snip
string NEWid = myCMD.ExecuteScalar().ToString(); // these lines.
int newID = Convert.ToInt32(NEWid); // are my stupid
int [] newID2; // newbie problems
newID2=new int[20]; // described above
newID2=newID; //
int[] combArray=new int[18];
arrPrefix.CopyTo(combArray,0);
input from a user. Depending on their input it creates an array prefix
of numbers. The 2nd part of the array comes from an access database
where it holds the next available number. This is where the problem
sets in, when I pull the 8 digit number from the db I cannot get it
into an array. I need each digit split apart into the array. I can read
it as an Int but am not sure how to read it as an array.
Ultimately I need to merge the array prefix with the array from the db
so I can do a calculation on each digit.
Any help is appreciated. Thanks.
// code snip
string NEWid = myCMD.ExecuteScalar().ToString(); // these lines.
int newID = Convert.ToInt32(NEWid); // are my stupid
int [] newID2; // newbie problems
newID2=new int[20]; // described above
newID2=newID; //
int[] combArray=new int[18];
arrPrefix.CopyTo(combArray,0);