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.

NumUpDown bug?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2009, 09:57 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
Cool NumUpDown bug?

The attached program and Sqlite data give me different results on the desktop and device.

The number that should be loaded into the numupdwn value is 33183. Works fine on desktop and a device with Mobile 5. Does not work on pc2003 device.

Checked the Netcf on the 2003 device, using Erel's netcf test program and it indicates Net Framewok 2.0 2.0.7045.0 is installed.

Is this a bug in NetCf 2 or what?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-30-2009, 12:45 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

The problem is that on the Compact Framework a NumericUpDown control holds it's values as an Int16. This means that the values it can hold only range from negative 32768 through positive 32767. As your expected value of 33183 is larger than the maximum it is being interpreted as a negative number and is being adjusted to the value of the Minimum property of the NumericUpDown.

As this is a Compact Framework limitation WM5.0 should also exhibit this behaviour as the CF is independent of the OS. Both my WM2003SE Axim X30 and my WM6.0 iPAQ 214 do show this problem so I would expect a WM5.0 device to show it. Perhaps you didn't try an out of range value.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 11-30-2009 at 12:51 PM.
Reply With Quote
  #3 (permalink)  
Old 11-30-2009, 06:33 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
Question NumUpDown bug?

Works find under Mobile 5, using Net Frame 2.0 3.57283.0., per Erel test program. Mobile 5 is running on a IPAQ hx2790b

Screen shot is below. The current value of the next invoice is shown correctly.

I also tested the min (30000) and max (39999) values and they worked. Wouldn't allow anything less than the min value or greater than the max value.

Thanks
Reply With Quote
  #4 (permalink)  
Old 11-30-2009, 06:53 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It looks as though you are entering the values manually as I can see a cursor in the screen shot. Yes it appears to work properly for manual entry but if you read the Value property back you will find it is negative for out of range values. Enter 39999 and it will read back as -25537! Similarly assigning to the Value property will not work. It appears that the manual entry validation is correctly using a reasonable resolution but the actual storage of the Value is being done as an Int16. This is a known limitation of the CF NumericUpDown control.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 11-30-2009, 07:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This limitation is described here: Controls in the .NET Compact Framework
__________________
Basic4android documentation
Reply With Quote
  #6 (permalink)  
Old 11-30-2009, 08:05 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
Default NumUpDown bug?

Good old ms

Thanks Guys will work around it.
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
Sizing numupdown jerryjukem Questions (Windows Mobile) 1 04-04-2009 03:13 PM
NumUpDown skipper Questions (Windows Mobile) 2 02-13-2008 04:19 PM
NumUpDown anomaly agraham Bug Reports 1 07-30-2007 04:57 PM
NumUpDown control davelew1s Questions (Windows Mobile) 5 07-29-2007 08:25 PM
NumUpDown petrbury Bug Reports 6 05-15-2007 05:55 PM


All times are GMT. The time now is 08:54 PM.


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