BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-25-2008, 06:01 AM   #1
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default Sets DateField value properly !?!

Please Login to Remove!

I have a DateField with no specified value. In the RIM library i have read that if i setDate() Long.MIN_VALUE the field looks like dashes ("-- --- ----"). That is ok, but when i want to set a value to this field using trackwheel click to the field i see something like this: "02 Dec 292269055". Is it a normal situation, and if it is not - how can i fix it ?
Offline  
Old 04-25-2008, 06:55 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

seems that the set value (-2^63 ?) is not checked before the conversion. You could override onFocus() of the field to do your own checks.
Offline  
Old 04-25-2008, 07:07 AM   #3
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default

Well, that is a good tip. I should have found out by myself. Thanks !
Offline  
Old 09-24-2008, 09:40 AM   #4
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default

Is there anyone who knows more about my problem? Replies with code attached will be appreciated ;)! Thanks!
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


USED ROCHESTER AMETEK WATT TRANSDUCER WSA3B picture

USED ROCHESTER AMETEK WATT TRANSDUCER WSA3B

$50.00



Novotechnik Position Transducer LWH750 LWH 750 LWH 0750 NEW 1PCS picture

Novotechnik Position Transducer LWH750 LWH 750 LWH 0750 NEW 1PCS

$218.75



CLEVELAND-KIDDER LOAD CELL TRANSDUCER UPB-5 picture

CLEVELAND-KIDDER LOAD CELL TRANSDUCER UPB-5

$139.49



RDP Electronics Transducer Indicator E309 picture

RDP Electronics Transducer Indicator E309

$245.00



Novotechnik TLH-0300 Position Transducer New One Expedited Shipping TLH0300  picture

Novotechnik TLH-0300 Position Transducer New One Expedited Shipping TLH0300

$193.50



NEW Novotechnik TLH-0750 TLH750 Position Transducer picture

NEW Novotechnik TLH-0750 TLH750 Position Transducer

$238.81







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.