Error "e is already declared
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Hi All
I was just doing a Decrypter App from a Tutorial, In the Tutorial i have 2 subs with the same strings and I am getting an error on the Letter e, as It's already Declared?
Dim a, b, c, d, e,(This is the Error) f, g, h, i, j, k, l , m, n, o, p, q, r, s, t, v, w, x, y, z As String
Dim outcome As String
a = "a"
b = "b"
c = "c"
d = "d"
e = "e"
Can some kind Soul point me in the right direction to sort the ERROR out
Cheers
Chris
ps/// I have encluded the Source below, so if someone could just take a look, as you might be able to just sort it with a little knowhow.......
I was just doing a Decrypter App from a Tutorial, In the Tutorial i have 2 subs with the same strings and I am getting an error on the Letter e, as It's already Declared?
Dim a, b, c, d, e,(This is the Error) f, g, h, i, j, k, l , m, n, o, p, q, r, s, t, v, w, x, y, z As String
Dim outcome As String
a = "a"
b = "b"
c = "c"
d = "d"
e = "e"
Can some kind Soul point me in the right direction to sort the ERROR out
Cheers
Chris
ps/// I have encluded the Source below, so if someone could just take a look, as you might be able to just sort it with a little knowhow.......
You do not have the required permissions to view the files attached to this post.
Last edited by hungryhounduk on Thu Jan 02, 2014 12:40 pm, edited 1 time in total.
make sure that those letters has not something in common on its value when encrypted.
if your sub contains a 'e' already then you can't use the e again
like for example
private sub demo (byval e as ....)
so if you use here the e from your dim then you get 'e It's already Declared'
like for example
private sub demo (byval e as ....)
so if you use here the e from your dim then you get 'e It's already Declared'
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
that depends if this code is inside a Click Handler (or any other "Sub" with the "Handles" clause); the reason being that: It is a standard EventArgument variable for .NET
I have posted up the source in the first post, can someone take a look at it, it will be an easy fix for someone who knows what they are doing 

you have 2x e in your code
please try to change the dim e with e1 for example
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a, b, c, d, e, f, g
this cause the error
please try to change the dim e with e1 for example
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a, b, c, d, e, f, g
this cause the error

visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
Ok I tried that with a e1 and an e2, but still an error
i didn't get any errors i run it build
works fine without errors
works fine without errors
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
dummy is right.. just change the "e". i just tested it and its working...
you may try mine too, i made this long time ago.
you will have alot of ideas from this.
it works the same likes yours, and the code is much shorter.
source code and exe are encluded in a zip file.


This file is hosted off-site.
you may try mine too, i made this long time ago.
you will have alot of ideas from this.
it works the same likes yours, and the code is much shorter.
source code and exe are encluded in a zip file.


This file is hosted off-site.
Last edited by noypikami on Thu Jan 02, 2014 1:32 pm, edited 1 time in total.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023