> On Wednesday 24 November 2010 22:32:26 Benoît Minisini wrote: > > > On Wednesday 24 November 2010 22:08:34 Benoît Minisini wrote: > > > > > > Hi Benoit I use isDate() quite a lot, isNumber I think once > > > > > > Regards > > > richard > > > > In which context exactly? > > When I've got textboxes and user has entered what is meant to be a date, > for example on the lost_focus event >
I mean which code. IsDate() only tells you if a variant is a Date. If you want to check that a string is a date, you have to do that: dDate = Val(sTextBoxString) If IsNull(dDate) Then Print "Enter a date!" Endif -- Benoît Minisini ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user