ASP within ASP with HTML

BackFire

New Member
I have an ASP array, e.g., bytCompareArray(36,2). The first column can have any integer between 1 and 9 in it. The second only 1 or 2. I have a second variable, e.g., bytID_Compare, that can hold any integer from 1 to 36 - but generally starts at 1 and moves up to 36. I which to use use this these together to compare two images, the images being named, color1.pgn, color2.pgn, color3.pgn, etc. Therefore:\[code\] <img src="http://stackoverflow.com/questions/12148437/Color1.png"> - works <img src="http://stackoverflow.com/questions/12148437/Color<%=trim(bytCompareArray(1,1))%>.png"> - works\[/code\]but\[code\] <img src="http://stackoverflow.com/questions/12148437/Color<%=trim(bytCompareArray(bytID_Compare,1))%>.png"> - fails <img src="http://stackoverflow.com/questions/12148437/Color<%=trim(bytCompareArray(<%=bytID_Compare%>,1))%>.png"> - fails <img src="http://stackoverflow.com/questions/12148437/Color<%=trim(bytCompareArray%>(<%=bytID_Compare%>,1)).png"> - fails\[/code\]Any suggestions. The idea being to use the array to make all 36 comparisons of each of the 9 images to each other (8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 36). Thanks. Rick
 
Back
Top