Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#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
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
#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
#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
#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
Sponsored Links

Member Spotlight
Crime
Crime
SC, usa
Posts: 506
Joined: March 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics46,823
Posts81,993
Average Daily Posts11
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,987
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)