Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Bug: Programing error not catched by desktop IDE


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2008, 09:57 PM
Newbie
 
Join Date: May 2007
Posts: 3
Default Bug: Programing error not catched by desktop IDE

It turns out that to control the menu1.checked property at runtime the setting is either True or False, not 1 or 0. However, it is possible to write the code as menu1.checked = 0 or menu1.checked = 1 and the desktop IDE does not complain at all about it. If you run your code via F5, your menu item toggles correctly. Even when you compile your program as a Pocket PC or Smartphone EXE, the program compiles without any errors reported. But when you run the program on the device and toggle that particular menu item, you do get an error.



Like I said, witing the code so it reads menu1.checked = True or menu1.checked = False then the program works without errors on all desktop, Pocket PC or Smartphone. If use of True/False as opposed to 1/0 is required, then the desktop IDE should point out this error, when we run the program with F5 or at the very least when compiling.
__________________
System specs:
Desktop: Pentium 4 3Ghz, 2GB RAM, XP Professional SP2.
Pocket PC: AT&T Tilt (HTC), Windows Mobile Professional.
Smartphone: Motorola Q9h, Windows Mobile 6 Standard.
Reply With Quote
  #2 (permalink)  
Old 05-30-2008, 11:55 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

Thank you for posting it.
Next version will not allow the use of 1 and 0 as boolean values in the IDE.
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
FileSize(file) brings up error on device - but not on Desktop TWELVE Questions & Help Needed 7 05-10-2008 03:54 PM
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 12:40 PM
Desktop error laiyilam Bug Reports 2 05-17-2007 10:55 AM


All times are GMT. The time now is 03:23 AM.


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