473,473 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

do while loop question

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

*** Sent via Developersdex http://www.developersdex.com ***
Oct 1 '08 #1
3 1709

Hint :

Continue
;-)
regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com


"Darin" <darin_nospam@nospameverschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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

*** Sent via Developersdex http://www.developersdex.com ***

Oct 1 '08 #2
i knew i just had to be missing it. thanks.

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Oct 1 '08 #3
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

"Darin" <darin_nospam@nospameverwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>i knew i just had to be missing it. thanks.

Darin

*** Sent via Developersdex http://www.developersdex.com ***

Oct 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi there folks... Just wondering if someone can help a newbie to VB!? I'm running some stuff in a For loop. Each time the loop runs it makes a change to a value which it should display in a...
24
by: Tweaxor | last post by:
This has been puzzling me all this week. This is actually a homework assignment from last semesmter. But the teacher wouldn't tell us why certain things didn't work, but it didn't just work. My...
14
by: morpheus | last post by:
Hi Group, May I ask the following? for (i=0; (c=getchar()) != EOF && c != '\n'; ++i) line=c; What I am finding is that when c == '\n' is true, the loop is terminated but i is still...
4
by: bruce | last post by:
hi.. basic foor/loop question.. i can do: for a in foo print a if i want to do something like
11
by: logicode | last post by:
I need a loop that can be put in 3 instances. I am not sure which loop I can find and I dont want to use a switch statement so can you help? I Already know the code just the loop for it. ...
10
by: Milo Daemon | last post by:
Hi, i am extremely new to python and i've been following a tutorial about learning to programm with python. After reading through the tutorial and answering the questions given by it i findally came...
11
by: SM | last post by:
I have a couple of arrays that represent different categories. One array per category. The arrays contain names of photos. The arrays look like this: $cat_1 = array('moonlight.jpg'',...
2
by: takayuki | last post by:
Hi everyone, I'm studying python via the excellent "how to think like a python programmer" book by Allen Downey. Noob question follows... I have a txt file (animals.txt) which contains the...
3
by: troy_lee | last post by:
I have a form that asks for the month, the year, the number of weeks in the month and the beginning date for the month. I want to be able to: Number the weeks (e.g. 1, 2,3, etc.) Assign a...
7
by: gordon | last post by:
is it possible to send a message to the gui instance while the Tk event loop is running?I mean after i create a gui object like root=Tk() mygui=SomeUI(root) and call root.mainloop() can i...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.