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.


working with date


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 08:59 AM
gjoisa's Avatar
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 53
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
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 165
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, 21 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
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 53
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: 3,199
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with VGA screens Erel Tutorials 25 11-21-2008 08:05 AM
Forelayer not working(?) Cableguy Questions & Help Needed 5 08-16-2008 12:52 PM
Why is my drawer.New2() not working? willisgt Questions & Help Needed 3 06-29-2008 11:27 AM
Working ipac METER??? bGoody_iPAC_rx1950PPC Questions & Help Needed 2 03-20-2008 08:02 AM
working with FormExDesktop_1.2 Cableguy Questions & Help Needed 20 01-28-2008 07:02 PM


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


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