473,326 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

very simple question

Hi at all,
i need to know if there is a statement in vb like "continue" in c++; to use
in statements loop. I'm using vb net but i think the question is the same
for vb 6 language.
thanks in advance.
roberto
Nov 21 '05 #1
4 886
Nope. Visual Basic .NET 2005 has it, however.

"Roberto Carcione" <ro********@supereva.it> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
Hi at all,
i need to know if there is a statement in vb like "continue" in c++; to use
in statements loop. I'm using vb net but i think the question is the same
for vb 6 language.
thanks in advance.
roberto

Nov 21 '05 #2
"Roberto Carcione" <ro********@supereva.it> schrieb:
i need to know if there is a statement in vb like "continue" in c++; to
use
in statements loop. I'm using vb net but i think the question is the same
for vb 6 language.


In addition to the other reply: You can "fake" 'Continue' using 'GoTo' and
a code label:

\\\
Do
Start:
...
If...Then
GoTo Start
End If
...
Loop While...
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
On Thu, 28 Oct 2004 18:01:29 +0200, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
"Roberto Carcione" <ro********@supereva.it> schrieb:
i need to know if there is a statement in vb like "continue" in c++; to
use
in statements loop. I'm using vb net but i think the question is the same
for vb 6 language.


In addition to the other reply: You can "fake" 'Continue' using 'GoTo' and
a code label:

\\\
Do
Start:
...
If...Then
GoTo Start
End If
...
Loop While...
///


I think you want the loop condition to be tested after the
"continue".. the way it is done in C++ etc..

So you want it more like this:

Do
..
..
If xyz Then
'Continue Loop
Goto CONTINUE:
End If
..
..

CONTINUE:
Loop While (Condition)
// CHRIS

Nov 21 '05 #4
"CHRIS" <ch***@sorry.no.spam.com> schrieb:
I think you want the loop condition to be tested after the
"continue".. the way it is done in C++ etc..

So you want it more like this:

Do
..
..
If xyz Then
'Continue Loop
Goto CONTINUE:
End If
..
..

CONTINUE:
Loop While (Condition)


ACK, that's more appropriate.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5

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

Similar topics

0
by: Gene Ellis | last post by:
Very simple question. If I have the XML file below: <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="newspage.xsl"?> <newspage> <content>Click here for blah...
2
by: James | last post by:
I have a very simple datagrid, with an edit button that I added in PropertyBuilder. This fires the EditCommand event just fine and I show a panel where the user can edit certain fields. I have a...
16
by: lovecreatesbeauty | last post by:
`Writing C code is very simple', one guy related to my work said. I'm not sure whether he is an expert or not. What he said about C programming like this can't convince me. I think there should be...
50
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
2
by: dave | last post by:
Hi, I have searched for the answer for this error message without success. I have seen the question many times though:) I create an ASP.NET project (VS 2005, C#), and use a very simple .mdf...
27
by: Paulo da Silva | last post by:
Hi! I was told in this NG that string is obsolet. I should use str methods. So, how do I join a list of strings delimited by a given char, let's say ','? Old way:
1
by: Simon | last post by:
A very simple question that is very hard to google..(so please be so kind to answer it, if you have the answer.) How can I reach an iframe, located in another frame. Situation: frameset of three...
1
by: Raycaster | last post by:
I'm 3/4 finished 2 simple VB apps for a upcoming silent auction being held at my children's school. Very Simple - This is what it does: 1st app allows input and builds a text database Unit...
4
by: maria | last post by:
I only use C++ with Visual Studio 6.0 for string manipulations in thousands of HTML pages on my website. Many times, the output files of many of my C++ programs contain a spanish question mark (¿)...
3
by: stdlib99 | last post by:
Hi, I have a simple question regarding templates and meta programming. I am going to try and work my way through the C++ Template Metaprogramming, a book by David Abrahams and Aleksey...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.