corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Programmin Help needed please


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Programmin Help needed please
flame1987
Member

Registered: 20th Nov 06
Location: North Wales
User status: Offline
   4th Apr 07 at 22:04   View User's Profile U2U Member Reply With Quote

Expected class, interface, enum or delegate.

I keep getting this error im programming j# language what the Fu*k does it mean?

private void button1_Click(Object sender, System.EventArgs e)

The Error is on the void section although im pretty confident the line of code is error free if i comment it out it moves onto the next click event.

Please Help
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
4th Apr 07 at 22:10   View User's Profile U2U Member Reply With Quote

Can you post the code behind that function?
flame1987
Member

Registered: 20th Nov 06
Location: North Wales
User status: Offline
4th Apr 07 at 22:11   View User's Profile U2U Member Reply With Quote

private void button1_Click(Object sender, System.EventArgs e)
{
String strURL;

strURL = cmbURL.get_Text();

webBrowser1.Navigate(strURL);

cmbURL1.get_Items().Add(cmbURL.get_Text());
}
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
4th Apr 07 at 22:14   View User's Profile U2U Member Reply With Quote

It will be because you've missed a bracket or semi colon out somewhere else.
flame1987
Member

Registered: 20th Nov 06
Location: North Wales
User status: Offline
4th Apr 07 at 22:18   View User's Profile U2U Member Reply With Quote

surely it would just tell me that though by saying "} Expected"
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
4th Apr 07 at 22:21   View User's Profile U2U Member Reply With Quote

Yeah usually, but not if its a semi colon.
flame1987
Member

Registered: 20th Nov 06
Location: North Wales
User status: Offline
4th Apr 07 at 22:25   View User's Profile U2U Member Reply With Quote

cant see anything i have missed. all because of a toolstrip this happened wish i hadnt have bothered as my program is now fooked
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
4th Apr 07 at 22:26   View User's Profile U2U Member Reply With Quote

Should String have a capital s?

C# it's lowercase.
flame1987
Member

Registered: 20th Nov 06
Location: North Wales
User status: Offline
4th Apr 07 at 22:32   View User's Profile U2U Member Reply With Quote

No in J# it has a capital S it also gets filled in by intelisense using Visual Studio. The Code Doesnt even get that far and obviously it doesnt compile. It just highlights the VOID section for some unknown reason

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Nova drivers wont like this Avinitlarge General Chat 9 210
14th Jun 03 at 14:03
by 16vmarc
 
FOX BROWS NEEDED...$$$ WAITING troublesome Classifieds 3 1502
26th Aug 03 at 08:48
by troublesome
 
start college tm :( Icy General Chat 7 132
1st Sep 03 at 07:01
by Icy
 
Keys... VegasPhil General Chat 4 161
13th Feb 05 at 18:28
by PaulW
 
**byebye saxo, hello corsa(lots n lots of pics,56k?!!!!)** L33 LEG General Chat 61 4289
7th Apr 05 at 23:40
by L33 LEG
 

Corsa Sport » Message Board » Off Day » Geek Day » Programmin Help needed please 29 database queries in 0.0150959 seconds