[Gambas-user] Dateadd function

nigel at ...38... nigel at ...38...
Thu Sep 1 18:14:00 CEST 2005


Use vb.dateadd e.g.
textbox3.text=vb.dateadd(textbox2.text,d,textbox1.text)

> Message Received: Sep 01 2005, 02:45 AM
> From: "isy21 at ...1082..." 
> To: gambas-user at lists.sourceforge.net
> Cc: 
> Subject: Re: [Gambas-user] Dateadd function
> 
> 
> I use version 1.0.10, and i use gb.vb component also.
> How can i do it for dateadd or datediff ?
> 
> Thanks a lot
> 
> Ignatius
> 
> On Thursday 01 September 2005 00:24, Benoit Minisini wrote:
> > On Wednesday 31 August 2005 11:33, isy21 at ...1082... wrote:
> > > Hi, all
> > >
> > > I have a textbox like this one
> > >
> > > textbox1.text =02/08/2005 (in dd/mm/yyyy)
> > > textbox2.text= 30 (in days)
> > > textbox3.text= ..is date 30 day after 02/08/2005... ( result must
> > > be in date too...will be added date from textbox1 with textbox2 in period
> > > ) (I use in textbox3_change ->
> > > textbox3.text=dateadd(textbox2.text,d,textbox1.text)
> > >
> > > but i return Error --> "unknown indentifier:dateadd
> > >
> > > i use suse 9.3 prof
> >
> > Good, but you should tell which version of Gambas you use. I guess this is
> > the stable version, and in the stable version DateAdd does not exist,
> > except if you use the gb.vb component.
> >
> > DateAdd and DateDiff are in the development version.
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20050901/942d63db/attachment.html>


More information about the User mailing list