loop problem..?

1. Senior Member
Join Date
Dec 1969
Posts
1,315

## loop problem..?

uid = "01A, 02A, 03A, 03B, 04A, 05A, 06A, 06B, 06C, 06D"<BR>desk = "t1, t2, t3, t3, t4, t5, t6, t6, t6, t6" <BR> <BR>strUID=split(uid,", ")<BR>strDesk=split(desk,", ")<BR><BR>For i=0 to Ubound(strUID)<BR> For y=0 to Ubound(strUID)<BR> For x=0 to Ubound(strUID)<BR> If Right(strUID(i),1) &#060;&#062; Right(strUID(y),1) and _<BR> Left(Right(strUID(i),2),1) = Right(strDesk(x),1) then<BR> &#039;Response.Write "str1="&(Right(strUID(i),1))&"&#060;&#062;"&(Right (strUID(y),1))&"&ltbr&gt"<BR> <BR> &#039;Response.Write "str2="&(Left(Right(strUID(i),2),1))&"="&(Right(st rDesk(x),1))&"&ltbr&gt"<BR> result = result &","& strUID(i)<BR> end if <BR> next <BR> next <BR>next <BR>str = result<BR>Response.Write "str="&(str)<BR>&#039;How to get result: 03A,03B,06A,06B,06C,06D<BR>%&#062;

2. <eop> Guest

## they are out in forces today!

.

3. Senior Member
Join Date
Dec 1969
Posts
1,315

## relax..

.

4. Senior Member
Join Date
Dec 1969
Posts
1,671

## ..copy and paste..

ah = "e l o h s s a n a e r a u o Y" <BR>rev = split(ah," ")<BR>For i = 0 to UBound(rev)<BR> res = Right(rev(i),1) & res <BR>Next<BR>res = Replace(res,"u","u ")<BR>res = Replace(res,"e","e ")<BR>res = Replace(res,"n","n ")<BR>res = Replace(res,"y","y ")<BR>result = Replace(res,"g","g ")<BR>Response.Write (result)&"<BR>"

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•