Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
May
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#17674 - 05/26/02 04:11 AM Error
Joined: May 2002
Posts: 189
CyberNerd Offline
Member
CyberNerd Offline
Member

Joined: May 2002
Posts: 189
Here
Im a total newbie programmer and although im sure it wasnt the best choice i picked visual basic to be my first language. Im using microsoft visual studio 6.0 and a book called Starting with visual basic, im doing a practice lesson right out of the book and I wrote everything correctly and i keep getting a compiling error with one line

Private Sub Form_Load()

i have the smallest bit of knowledge possible on the subject but unless i find out whats going on i cant progress. so my question is, does anyone know whats going on?


Just because I dont care doesn't mean that I don't understand.
-Homer Simpson
Top
Sponsored Links
#17675 - 05/26/02 01:10 PM Re: Error
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
that line is not the line you're getting an error on. When you execute the program from within VB, it first goes to the Form_Load section and compiles it for execution. But it detected an error and could not compile - so it it showed you the section (procedure) that it had a problem with. But there should also be another word or line that is highlighted and a error message discribing what's wrong. Post the error message and I'll explain what it means.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17676 - 05/26/02 03:18 PM Re: Error
Joined: May 2002
Posts: 189
CyberNerd Offline
Member
CyberNerd Offline
Member

Joined: May 2002
Posts: 189
Here
Error:

Ambiguous name detected: Form_Load


Just because I dont care doesn't mean that I don't understand.
-Homer Simpson
Top
#17677 - 05/27/02 04:08 PM Re: Error
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
Well isn't that peculiar. I gotta take 2 minutes to go lookup the error for a description in the MSDN...

"More than one object in the same scope may have elements with the same name. Qualify the element name by including the object name and a period."

Actually, it took me 1.5 minutes. Ahem...

The problem may be that you have "Private Sub Form_Load()" more than once. Or maybe you have "Form_Load" more than once in your code used as variables or something. This fact may be hidden from you. Open the code window and look at the two buttons at the lower left corner of the code panel. If you hover your mouse over the left button, it'll say "Procedure View", the other being "Full Module View". You want "Full Module View" button to be pressed down. The duplicate code could also be in a module (a module is for raw code which isn't "contained" in a window)

If you STILL can't solve it, then open your Form1.frm file in notepad (or whatever you named your form file). Copy the entire contents and paste them into a post.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17678 - 05/27/02 07:48 PM Re: Error
Joined: May 2002
Posts: 189
CyberNerd Offline
Member
CyberNerd Offline
Member

Joined: May 2002
Posts: 189
Here
ok, thanks thats a step in the right direction


Just because I dont care doesn't mean that I don't understand.
-Homer Simpson
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics45,729
Posts80,897
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 38,893
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 4 guests and 1 spider.
Latest News