473,382 Members | 1,464 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,382 software developers and data experts.

'Namespace' statement must end with a matching 'End Namespace'.

Prathap
37
I am getting this error,here is my code.thanks
Expand|Select|Wrap|Line Numbers
  1. Public Class Sample2
  2.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  3.         Dim counter As Integer
  4.         counter = 1
  5.         While (counter <= 10)
  6.             MessageBox.Show("Counter Now is : counter")
  7.             counter = counter + 1
  8.         End While
  9.     End Sub
  10. End Class
Dec 8 '11 #1
4 4244
kadghar
1,295 Expert 1GB
use WEND instead of End While
Dec 13 '11 #2
Prathap
37
Thanks for your response, but an error showing WEND is not supported
Dec 13 '11 #3
kadghar
1,295 Expert 1GB
I really don't see the error then, perhaps you're opening a namespace before this code, but never closing it.
Dec 14 '11 #4
Prathap
37
thanks, the error is "WEND statements are no longer supported;use End while statements instead"


Expand|Select|Wrap|Line Numbers
  1. Public Class Sample2
  2.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  3.         Dim counter As Integer
  4.         counter = 1
  5.         While (counter <= 10)
  6.             MessageBox.Show("Counter Now is : counter")
  7.             counter = counter + 1
  8.         wEnd While
  9.     End Sub
  10. End Class
Dec 14 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Victor Porton | last post by:
Should we end namespace names (http:// URLs) with a slash or not? Arguments?
1
by: Jason Heyes | last post by:
Can somebody tell me how to change only the main function below so that bar in the default namespace is assigned 4 and not bar in namespace foo? int bar; namespace foo { int bar; } using...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
by: Edward S | last post by:
I would appreciate if someone could correct my SQL statement which is displaying a message Expected : End of Statement this statment is attached to a button on the form StrSQL = "PARAMETERS !!...
3
by: Marlene Stebbins | last post by:
My program has code like this: bigint bigSub(bigint minuend, bigint subtrahend) { bigint bigdiff; bigInit(&bigdiff); if(((cmp_ops(minuend.number, subtrahend.number))==1) && minuend.sign...
2
by: William | last post by:
The script below runs correctly in ASP but not ASPX. Im not sure why? Please help. Description: An error occurred during the compilation of a resource required to service this request. Please...
4
by: William | last post by:
Does anyone know what is causing the error below. The following scipt runs in .asp but not .aspx??? Please help. Description: An error occurred during the compilation of a resource required to...
1
by: nosaj070 | last post by:
Hi, I'm working on a project and it is my first time implementing VBA with Access. I know my SQL Statement is close, but it obviously isn't perfect, if any of you can see what the error is I'd really...
4
by: =?Utf-8?B?QXJseW5fTA==?= | last post by:
I have a Namespace compiling to a DLL. It contains 2 classes and 10 structs all typed as public and it worked. When I added an additional public struct the added public struct cannot be accessed...
2
by: yllanger | last post by:
Hi guys, I have come yet again to ask another question. :D The scenario is like this. Using Parser; namespace Crawler { public void Main() {
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.