I would like to point out, if you have not noticed, that the RETURN string uses NOW 4 or 6 times (6 if the concatenatation is fixed proper). Please note that NOW is a little different every one of those times. If the code executed a fraction of a moment before to after midnight you would see the oddest output. It would be worse if it executed at the moment before a new month started and even more so if it executed at the moment before a new year. In a multitasking computer, it is possible to slice out at the worst possible time. Time-sensitive calculations must not do this. -Nando
---------- Original Message ----------- From: 2aq9j93b7s <2aq9j93...@cogeco.ca> To: gambas-user@lists.sourceforge.net Sent: Mon, 4 Nov 2013 19:53:33 -0800 (PST) Subject: [Gambas-user] Unexecuted Orphan Code or Something? > hello > > Note: In preview mode this looked like a mess with the html codes so I > deleted them. > > It is a work in progress so I have been cutting, pasting and copying. Note > the last line after the commented line - the orphan. The line above the > commented code ends the return component. The last line neither displays nor > generates an error. It appears to be an ignored orphan. Apparently I forgot > to comment the last line out. > > CASE 2 > Return "Today" & > Format(Date(Year(Now), Month(Now), iTp1), "dddd") & > ", the " & > Format(Date(Year(Now), Month(Now), iTp1), "d") & > fuFormatSuffix(iTp1) > ' "Of" & > Format(Date(Year(Now), Month(Now), iTp1), "mmmm, yyyy") > CASE 3 > > This looks like > Today, > Monday, the 15th > on the screen (minus the html code.). > > I am sure that it is a bug but I don't know. My last upgrade caused me many > problems with previously properly functioning code. Maybe this is something > that the menu item /Clean/ did not catch. > > Anyone? > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Unexecuted-Orphan- > Code-or-Something-tp44111.html Sent from the gambas-user mailing list archive > at > Nabble.com. > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user