+1 I'm using Eval() in my gambas2 project too, to check event conditions (domotica lamp on events that is)
Like this for example: Eval(Var_Sunset = Format(hour(Now()),"0#") & ":" & Format(minute(DateAdd(now(), gb.Minute, 30)),"0#")) Some people report weird behavior with other code... I'm sure this is due to the same bug.. Regards, Ron_2nd. 2011/9/16 JUHASZ Robert <robert1juh...@gmail.com>: > ;-( > > It would be great to fix it in gambas2, too if possible. At the moment I > don't want to move to gambas3 my production softwares because it is > still RC (and I suppose that I should learn and work a little to get my > programs working again). > > Robi > > -----Original Message----- > From: Benoît Minisini <gam...@users.sourceforge.net> > Reply-to: mailing list for gambas users > <gambas-user@lists.sourceforge.net> > To: mailing list for gambas users <gambas-user@lists.sourceforge.net> > Subject: Re: [Gambas-user] Eval error > Date: Fri, 16 Sep 2011 19:03:06 +0200 > > >> Hello Benoit, >> >> Finally I succeeded to install the latest version of gambas2 but I >> haven't succeeded with the Eval function. >> >> 1. I installed a brand new ubuntu 10.04 in virtualbox, performed the >> updates and installed gambas2 from source. >> Eval works fine under 10.04 but the .deb package created and installed >> on an 11.04 machine failed when using Eval. >> >> 2. Today I reinstalled my ubuntu 11.04 (no virtualbox, this is the main >> system on my computer), performed the updates and installed gambas2 from >> source. >> The Eval function works for integers but not for floats: Eval(3*2)=6, >> Eval(3/2)=1.5, Eval(3*2.1) fails, Eval(3/2.1) fails. >> >> I don't know how to check the revision but it supposed to be the latest >> one: >> downloaded from here: http://gambas.sourceforge.net/en/main.html >> instructions followed as written in the Compilation & Installation / >> Ubuntu section (note that the ./reconf-all command is missing in the >> ubuntu instructions but written in the general instructions and seems to >> be needed). >> I also saw links to .deb installation packages of Gambas here bot both >> links are dead. >> >> >> Can you please tell me how to continue? >> >> Thanks, >> Robi >> > > It actually has been fixed in Gambas 3, not in Gambas 2. :-/ > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user