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

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Help with Compiler error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2009, 09:22 PM
Junior Member
 
Join Date: Oct 2009
Location: London
Posts: 43
Default Help with Compiler error

Hi I am trying to compile a prog. and get the error

Error compiling program.
Error message: error CS1525: Invalid expression term ';'
Line Number: 43
Line AddLabel("systeminfo","labPname",5,currentheight,4 70, sizeoffont+10)


programs runs fine just can't compile

these are the relevant bits of the code...
Code:
41: sizeoffont= 18
42: currentheight=140
43: AddLabel("systeminfo","labPname",5,currentheight,470,sizeoffont+10)
from the error I was expecting to find ';' in the code on line 43 but it is not there, so I am stuck as to what to do...

Any help really appreciated...
Reply With Quote
  #2 (permalink)  
Old 10-20-2009, 09:54 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

If you look at the help file for AddLabel:
Quote:
Adds a Label to a Form or to a Panel at runtime.
Syntax: AddLabel (Form | Panel, Name, Left, Top, Width, Height, Text)

Example: AddLabel ("pnlOptions"," Label1", 5, 5, 40, 20, "Option:")
You are missing the last parameter, the text of the label.

Your line should look like:

Code:
43: AddLabel("systeminfo","labPname",5,currentheight,470,sizeoffont+10,"")
Even if there is no text in the label you must add the 2 Quotes.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 10-20-2009, 10:42 PM
Junior Member
 
Join Date: Oct 2009
Location: London
Posts: 43
Default

Brilliant thanks - I was adding the text a few lines later - I would really expect this to give an error when running in interpreter mode.

I really appreciate your help
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
Optimised compiler omits code with no error! agraham Bug Reports 1 06-22-2009 04:20 PM
Optimizing Compiler Error? Louis Questions (Windows Mobile) 9 02-23-2009 08:09 PM
Compiler error CS1519 Filippo German Forum 3 07-16-2008 09:06 PM
Compiler error CS1519 mamuen Questions (Windows Mobile) 9 07-14-2008 05:41 AM
External compiler error prinsen Questions (Windows Mobile) 3 03-19-2008 08:54 PM


All times are GMT. The time now is 01:58 AM.


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