Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

follow up question - conditionals within loops

Status
Not open for further replies.

yayawatson

Technical User
Apr 11, 2003
4
US
The reason I asked about writing conditional statements within a do until...loop is because I have a do until..loop where the conditional part of the loop doesn't work. Here is the code:

do until rs.eof
'Set the variables
iret = iim.iimSet("-var_case", rs.fields(0))
'Run the macro
iret = iim.iimPlay("pacersearch")
iret = iim.iimGetLastMessage()
if iret = "Chapter 13" then
iret = iim.iimPlay("pacercase")
Dim data1
Dim s
data1 = iim.iimGetLastMessage() s = data1
objOutputFile.WriteLine(s)
End If
rs.movenext
loop

Do you know why it won't work? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top