Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

working with date

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 08:59 AM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 163
Unhappy working with date

Hi , I am developing a program which uses the date according to user's requirement . I cant use here date control because it takes more time to go back up to 50 years if required . So I used 2 combo boxes , 1 for date and 1 for month , and a textbox for year . I have written code like :

a=cbdd.item(cbdd.SelectedIndex)'here cbdd is combobox for date
b=cbmm.item(cbmm.SelectedIndex) ' cbmm is combobox for month
c=txtyyyy.Text
d=b&"/"&a&"/"&c
dob=Dateparse(d)

but when executing the program some times it works perfectly. Some times it works wrongly ; i . e .value of 'dob' becomes "01/01/0001" if i entered the correct value in both combo boxes and textbox . What may be the reason ?
Reply With Quote
  #2 (permalink)  
Old 03-27-2008, 09:48 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Hi gjoisa,

In the attached file is a small example, but I do not know whether resolve your problem...
however this will not be an elegant solution but it works...

Best Regards

Massimo
Attached Files
File Type: sbp test.sbp (1.7 KB, 36 views)

Last edited by maXim : 03-28-2008 at 12:03 PM.
Reply With Quote
  #3 (permalink)  
Old 03-29-2008, 07:28 AM
gjoisa's Avatar
Senior Member
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 163
Default

Thank you maxim . I will try with your suggessions. Thanks a lot Again.

But dear Erel , can you tell me what may be the problem here ?
Reply With Quote
  #4 (permalink)  
Old 03-29-2008, 10:40 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Can you upload your program (including the combobox values) ?
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
Working with VGA screens Erel Tutorials 29 04-30-2009 01:38 AM
Forelayer not working(?) Cableguy Questions (Windows Mobile) 5 08-16-2008 12:52 PM
Why is my drawer.New2() not working? willisgt Questions (Windows Mobile) 3 06-29-2008 11:27 AM
Working ipac METER??? bGoody_iPAC_rx1950PPC Questions (Windows Mobile) 2 03-20-2008 08:02 AM
working with FormExDesktop_1.2 Cableguy Questions (Windows Mobile) 20 01-28-2008 07:02 PM


All times are GMT. The time now is 10:05 PM.


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