do while loop question

D

Darin

i have a do while loop that within it has a select statement. Some of
the items are done some of the times, others are done all the time.

I would like either:

Do while not_done
if quick and mid(file,1,2)<>'SO' then
next do
end if

select case
end select
Loop

OR

Do while not_done
select case
case "ARCust" and not quick
case "SOOrder"
case "ICItem" and not quick
end select
Loop

Are either of these (or something very similar possible or do i need to
do additional IF statements?

Darin
 
S

Scott M.

Also, you probably don't want "And", you most likely want "AndAlso".

Beleive it or not, "And" will still evaulate the right hand portion of a
test, even when the left hand portion is false.

-Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top