Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Compile error thrown in "error free" code.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2011, 02:03 PM
Newbie
 
Join Date: May 2011
Posts: 4
Unhappy Compile error thrown in "error free" code.

I can successfully Run and Build my code, and Basic4ppc tells me that there are no errors. When I try to compile to any executable, however, I get a compile error "CS1026: ) expected" on line 171.

Code:
168 Sub MySub
169   If bln Then
170     lst.Focus
171     btn.Color = "0,0,0"
172     '...
173   Else
174     '...
175   End If
176 End Sub
What is wrong? I'm posting this as a bug, rather than help request, because Basic4ppc should not tell me there are no errors when I build it, then turn around and throw a compile error at me.
Reply With Quote
  #2 (permalink)  
Old 05-24-2011, 02:24 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

I think that the problem is here:
btn.Color = "0,0,0"

Should be:
btn.Color = RGB(0,0,0)

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 05-24-2011, 03:27 PM
Newbie
 
Join Date: May 2011
Posts: 4
Default

This does fix the error, but why doesn't Basic4ppc catch my mistake before trying to compile?
Reply With Quote
  #4 (permalink)  
Old 05-24-2011, 04:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I think it may be a backwards compatibility issue from long ago. I seem to remember Erel saying that that btn.Color = "0,0,0" was valid in very early versions of Basic4ppc in the IDE before the true compiler was introduced. Indeed you should see that when you run your program in the IDE the button has a black border that vanishes if you comment out that line. It looks like the IDE still accepts the syntax, but doesn't do the right thing with it anymore, while the code generator for the optimising compiler doesn't support this deprecated syntax at all.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 05-25-2011, 06:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

@cyclotis04, please contact support@basic4ppc.com. You appear as an unlicensed user for some reason.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error if "Can Install to External Storage" enabled for v1.15/v1.16 WZSun Bugs & wishlist 11 02-05-2011 10:18 AM
Error CS0159 beim "Abfangen" einer Fehlermeldung JOTHA German Forum 6 11-09-2010 07:26 AM
Error CS1525 wegen Zeichen "<" im Code? JOTHA German Forum 2 11-05-2010 04:00 PM
If Substring(Textbox.Text,0,1) < "J" Then ' ERROR!!! Eveready Bug Reports 3 02-13-2009 09:14 AM
Error message: "Not correct version of dll" BjornF Questions (Windows Mobile) 5 09-17-2007 03:16 PM


All times are GMT. The time now is 04:21 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0