Why won't this work? 
Author Message
 Why won't this work?

<% RSAMResults.MoveFirst
 Do While Not RSAMResults.EOF%>
 <%If ckbparentcode = yes Then %>
     <img src="PChead.gif" border=0 alt=""><% =RSAMResults("Parent_Code")%>

 <%Else%>

<% RSAMResults.MoveNext
Loop%>

<%End If%>

It keeps telling me that it expected 'Do', but it looks to me that it should
get it.

Thanks
Craig

Craig Alexander
Island Tel Advanced Solutions



Sat, 12 Jan 2002 03:00:00 GMT  
 Why won't this work?
Craig,

Your loop is put in a conditional.

If you have a  'Do',  you have to have a  'Loop'  -
not only if it meets youir condition.

--
Nic Roche
Net Extra
www.extra.net.au

Add Gold Coast slideshow to Active Desktop.
http://203.147.232.91/goldcoast/channels/asitis/desktop.cdf

++++++++++++++++++++++++++++++++++++++++


Quote:

><% RSAMResults.MoveFirst
> Do While Not RSAMResults.EOF%>
> <%If ckbparentcode = yes Then %>
>     <img src="PChead.gif" border=0 alt=""><% =RSAMResults("Parent_Code")%>

> <%Else%>

><% RSAMResults.MoveNext
>Loop%>

><%End If%>

>It keeps telling me that it expected 'Do', but it looks to me that it
should
>get it.

>Thanks
>Craig

>Craig Alexander
>Island Tel Advanced Solutions



Sun, 13 Jan 2002 03:00:00 GMT  
 Why won't this work?
It looks to me like you are trying to do

Do
    If
    Else
    End if

Loop

But instead you did

Do
    If
    Else
Loop
    End If

It got pretty confused!  Move your end if.

Quote:

><% RSAMResults.MoveFirst
> Do While Not RSAMResults.EOF%>
> <%If ckbparentcode = yes Then %>
>     <img src="PChead.gif" border=0 alt=""><% =RSAMResults("Parent_Code")%>

> <%Else%>

><% RSAMResults.MoveNext
>Loop%>

><%End If%>

>It keeps telling me that it expected 'Do', but it looks to me that it
should
>get it.

>Thanks
>Craig

>Craig Alexander
>Island Tel Advanced Solutions



Sun, 13 Jan 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Why won't this work with NS6?

2. Why won't this work right

3. Why won't this work?

4. why won't this work?

5. Newbie - Why won't this work?

6. Why won't this work?

7. why won't this work?

8. Why won't this work?

9. Why won't this work right

10. Why won't this work?

11. Why won't this work?

12. Q: Why won't this work

 

 
Powered by phpBB® Forum Software