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.


Uh-oh ... - .Left assignment issue


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 07:21 PM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default Uh-oh ... - .Left assignment issue

Its probably my dodgy coding, though ...

I've just realised I am still using the old v6 B4PPC and not the latest v6.30 as when opening GalleyHC's code in the previous post, Basic4PPC said GalleyHC's program was saved in a later version of Basic4PPC.

*ANYWAY* ... so I updated my Basic4PPC to v6.30 (could have sworn I did it previously ... perhaps I was having a bad day) ...

*ANYWAY * ... to get to the point - having just realised my app (Adventure PDA) was still compiled on the old version of Basic4PPC I thought I would recompile to 6.30 (as I said I had done previously on my app)

*ANYWAY* ... when recompiling, I receive an error (which I did not get previously on the earlier version) ...

Quote:
Error Compiling program. (For both device and desktop)
Error description: Subroutine identifier cannot be assigned
Occured on line: 2421
AdvDesc.Left = 133
AdvDesc is a label caption which can be found on the FSelect form in my app...

You can take a look at my full SBP at http://www.therealeasterbunny.pwp.bl....uk/advpda.sbp

... or an excerpt of my code is:

Quote:
ButGETDROP.Top = 190
ButMAG.Top = 190
ButINV.Top = 190
ButHELP.Top = 190
ButELC.Top = 190
AdvDesc.Height = 220
AdvDesc.Left = 133
AdvDesc.Width = 105
BackGnd.Height = 162
Could it be because I have a subroutine called Left ?

If so, the old version took a blind eye to this and the new version is getting grumpy at it ?

Last edited by badkarma : 05-27-2008 at 07:43 PM.
Reply With Quote
  #2 (permalink)  
Old 05-27-2008, 07:34 PM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default

Yes, I have done some testing and I can now confirm that if I rename my "sub Left()" to "sub xLeft()" it now compiles OK.

Perhaps a wishlist for the compiler to run and pop up an error if using reserved words for subs.

Curious ... what happens if you have a variable called "Left" ... will test now ...
Reply With Quote
  #3 (permalink)  
Old 05-27-2008, 07:42 PM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default

It seems happy with a variable called Left ...

It only errors on compile of AdvDesc.Left = 133 if you have a sub called Left ...

Is this a bug of the compiler then, or should it not let you compile if subs are using reserved words?
Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 07:52 PM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default

Just rummaging in the Announcements and I saw a reply to v6.30 released by DeeCee ...

Quote:
I downloaded and installed V 6.30. The install went ok. When I run the desktop, the Help file and references say v 6.30, but the About Box, still says v 6.05. Is that correct?
This maybe what happened to me, as tonight i didn't "Repair' but did Uninstall then re-ran setup to install - I must have "repaired" earlier this month which is why I was still on the old version 6.05 (!?)

Anyway - cooking on gas now ... apart from my 2x DLLs wont go into my EXE - Erel did say "Most" DLLs, not "All" my DLLs are webbrowser.dll and bdeviceinfo.dll - why do some DLLs get embedded and some not? Just curious...

My EXE file size has increased by 40k though - think could be the images that are now getting placed in the EXE - will continue to poke ...

Last edited by badkarma : 05-27-2008 at 07:55 PM.
Reply With Quote
  #5 (permalink)  
Old 05-28-2008, 09:12 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by badkarma View Post
my DLLs are webbrowser.dll and bdeviceinfo.dll - why do some DLLs get embedded and some not?
See here Merging agraham libraries with the exe
Reply With Quote
  #6 (permalink)  
Old 05-28-2008, 09:51 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

See this attachment. You could "merge" the bDeviceInfo library by either using the Door library instead (which itself merges OK) as demonstrated here or by putting the .cs source file in your Basic4ppc Desktop\Libraries folder. Caveat - I haven't tried the latter but it is so simple it must work - which means it probably won't!
Attached Files
File Type: zip bDeviceInfo.zip (816 Bytes, 3 views)
Reply With Quote
  #7 (permalink)  
Old 05-28-2008, 10:05 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

Quote:
My EXE file size has increased by 40k though
The size has increased only because of images / libraries that are now merged in the executable.
Reply With Quote
  #8 (permalink)  
Old 05-28-2008, 10:44 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Source code for merging WebBrowser library now posted Web browser for desktop and device

Last edited by agraham : 05-28-2008 at 10:47 AM.
Reply With Quote
  #9 (permalink)  
Old 05-28-2008, 03:53 PM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default

Cool, thanks chaps, I will have a tinker and report back.
Reply With Quote
  #10 (permalink)  
Old 05-30-2008, 08:11 AM
Senior Member
 
Join Date: Mar 2008
Posts: 108
Default

Thanks agraham. The two libraries successfully merged OK for Adventure PDA. I will be releasing v1.03 shortly which will have a landscape mode gameplay option. Just some minor testing to complete now ...
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
Msgbox issue? badkarma Bug Reports 2 04-12-2008 10:39 AM
Drag Left / Right buttons on form issue. badkarma Bug Reports 2 04-11-2008 11:50 AM
return issue Cableguy Questions & Help Needed 1 09-21-2007 06:01 AM
Desktop IDE default width of left window Rioven Basic4ppc Wishlist 1 09-20-2007 06:36 AM
Retrieveimage issue Cableguy Questions & Help Needed 0 06-02-2007 05:49 PM


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


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