PDA

View Full Version : Recordset Result - alternate right and left justification


tom92909
04-23-2009, 09:11 AM
I am looking for an example of how to loop thru a result with a search using DataAssist and have the output display alternating from Left justification for the first record, and then Right justification for the second record, and then back to Left and so on.

Example:

Image 1 (text 1)
(text 2) Image 2
Image 3 (text 3)
(text 4) Image 4


Any ideas?

Ray Borduin
04-23-2009, 09:29 AM
Use DW to get it all working like:

Image 1 (text 1)
(text 1) Image 1
Image 2 (text 2)
(text 2) Image 2
Image 3 (text 3)
(text 3) Image 3
Image 4 (text 4)
(text 4) Image 4

Then add code in between the regions to move to the next row in the cart and increment the loop count, or just add an IF statment to alternatively display based on the value of counter%2.