Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


CS1002 error when Optimize Compiling


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2007, 08:00 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default CS1002 error when Optimize Compiling

I have just downloaded V6.01 and when I try to do a Optimized compile, I get the CS1002 error. This error supposedly indicates a missing semicolon ";". However I cannot see where in the code there is supposed to be one.

eg: If StrAt(CurrentFocus,StrLength(CurrentFocus)-1)="1" Then
txtJob1.Focus = true
CurrentFocus = "Job1"
End If

Here the second line (txtJob1.Focus = true) is logged as missing a semicolon.

In another case the following code produced the same error:

Let SortJob = Job(z-1)

.....however, if I get rid of the "Let", then the error is not produced - why, I don't know.

The complete code had no problems with v5.80

Thanks in advanced.
Burd.
Reply With Quote
  #2 (permalink)  
Old 12-29-2007, 08:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

Focus is a method (with 0 arguments), not a property.
You should write:
txtJob.Focus

Let is not a valid keyword.
Reply With Quote
  #3 (permalink)  
Old 12-29-2007, 08:15 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thank you.

Compiles okay now.

Burd
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error after compiling J12345T Questions & Help Needed 6 10-23-2008 12:59 AM
ERROR on compiling superbabicka Questions & Help Needed 9 08-17-2008 07:56 AM
Error compiling 6.01 magi6162 Questions & Help Needed 4 01-14-2008 04:13 PM
Error when compiling borderless Questions & Help Needed 2 11-14-2007 06:36 PM
Outlook.dll error after compiling Graley Questions & Help Needed 1 09-14-2007 06:30 PM


All times are GMT. The time now is 06:06 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0