Re: [Gambas-user] datediff problem

2015-08-10 Thread Jussi Lahtinen
Sorry to say, but this doesn't seem to be fixed.

? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day)
1


Jussi

On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 01/08/2015 17:52, Benoît Minisini a écrit :
> > Le 01/08/2015 17:33, nando a écrit :
> >> Here's an example.
> >>
> >>Dim FirstDate as Date
> >>
> >>FirstDate = Date(2015, 1, 1, 0, 0, 0, 0)
> >>Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day)  'ok
> >>Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day)  'ok
> >>Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day)  'ok
> >>Print DateDiff(firstdate, Date(2015, 8, 1, 04, 00, 00), gb.day)
> >> 'Wrong
> >>Print DateDiff(firstdate, Date(2015, 8, 1, 11, 21, 51), gb.day)
> >> 'Wrong
> >>
> >> 212
> >> 212
> >> 212
> >> 213  <---Wrong  should be 212
> >> 213  <---Wrong  should be 212
> >>
> >> Of course, this is looks like it might be a TimeZone problem.
> >> I am in GMT -5 but daylight savings during the summer it is -4
> >>
> >> Am I correct to say this is not correct operation?
> >>
> >> -Nando
> >>
> >>
> >
> > Argh, a just too late bug! You did that to spoil my holidats? 8-o
> >
>
> OK, I couldn't let you alone. I have updated the Gambas 3.8 source
> package with the fix for that bug.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Is the group still up?

2015-08-10 Thread Martin McGlensey
Is the group still publishing a digest? I have not seen one in a couple of
weeks.

 

Regards,

Marty

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas highlight

2015-08-10 Thread abbat81
Hi,

is it possible to add Gambas syntax highlighting for the Web?

I tried VBScript and VB.NET. It's not good for Gambas code.

https://highlightjs.org/



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Gambas-highlight-tp52218.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas highlight

2015-08-10 Thread Randall Morgan
Since Javascript is ran in the browser, you should be able to use any of
the javascript processors like Prism, Enlighten, zsh-syntax-hilighting,
etc. Most syntax highlighters use a config file or special class to set
highlighting rules. There is a Tex processor plugin I use with Lyx that has
Gambas highlighting rules. I haven't used it in a long while but it
shouldn't be hard to find. So just select a highlighter, get it to work on
your web page and then add the rules needed for Gambas. There is also a
Wordpress plugin that uses Tex and you should be able to use the same rules
from the Lyx plugin as it is just a Tex editor. Do some googling and you
should come up with all the peices you need to put it together.

You may also be able to use Gambas' own internal syntax highlighter. I
haven't tried but I am sure someone on here would know.



On Mon, Aug 10, 2015 at 8:05 AM, abbat81  wrote:

> Hi,
>
> is it possible to add Gambas syntax highlighting for the Web?
>
> I tried VBScript and VB.NET. It's not good for Gambas code.
>
> https://highlightjs.org/
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Gambas-highlight-tp52218.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas highlight

2015-08-10 Thread Jesus
El 10/8/15 a las 16:05, abbat81 escribió:
> Hi,
> 
> is it possible to add Gambas syntax highlighting for the Web?
> 
> I tried VBScript and VB.NET. It's not good for Gambas code.
> 
> https://highlightjs.org/
> 

Hi abbat81

About 6 years ago, I did contributed to GeShi project enabling syntax
highlighting for gambas[*]. GeShi is a powerful php script for
highlighting about 200 programming languages, it is easy to implement in
almost any web page and results are amazing.

Not sure what's happening with this project since 10 months ago, main
site is not responding for a while...

http://qbnz.com/highlighter

https://github.com/GeSHi/geshi-1.0

Moreover, there are plugins based on GeShi for several CMS as Wordpress,
and the like.

Hope this helps, regards

-- 
Jesus Guardon


[*] Yes, it needs an update based on gambas3 brand new classes...

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Print preview

2015-08-10 Thread Filippo Casati
how to printer settings remain after viewing the print preview? I want this
because closing the preview automatically printing.
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user