Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Jussi Lahtinen
Good choice. Jussi 2011/9/11 Benoît Minisini > > > > I think I go with the array solution, though I was hoping for something > > more elegant. > > > > Thanks, > > Jussi > > I know, but I usually sacrify elegance for performance. > > -- > Benoît Minisini > > > --

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Benoît Minisini
> > I think I go with the array solution, though I was hoping for something > more elegant. > > Thanks, > Jussi I know, but I usually sacrify elegance for performance. -- Benoît Minisini -- Using storage to extend the

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Jussi Lahtinen
> You are right with the fact that the compiler should issue a warning. But > it > cannot know everytime that the called function needs a ByRef, as soon as > the > function is in another class. Maybe I should have allowed ByRef in private > functions only... > OK, I understand. Maybe there should

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Benoît Minisini
> Problem is that my functions are like; ConnectThese(iWithTerm, ByRef > iVariable1, Byref iVariable2). > > Jussi > You are right with the fact that the compiler should issue a warning. But it cannot know everytime that the called function needs a ByRef, as soon as the function is in another c

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Jussi Lahtinen
Problem is that my functions are like; ConnectThese(iWithTerm, ByRef iVariable1, Byref iVariable2). Jussi 2011/9/11 Fabián Flores Vadell > 2011/9/10 Jussi Lahtinen > > > > > What is the alternative then? Pass variables as pointers? > > Making almost needless class for couple variables doesn't

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Fabián Flores Vadell
2011/9/10 Jussi Lahtinen > > What is the alternative then? Pass variables as pointers? > Making almost needless class for couple variables doesn't seem good > option... > > Jussi > Pass variables as pointer, will work (I think). But, ¿is necessary? Could you just use functions to return values?

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-11 Thread Fabián Flores Vadell
2011/9/9 Fabien Bodard > yes like : > > Private Function ModifyThat(byRef i as integer) as boolean > > i+=6*4 > > catch > return true > > end > > > > to use it > > if not Modifythat(ByRef iMyVal) Then Print iMyVal > > > sometime it can be usefull to catch the error in the calling function > I

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-10 Thread Jussi Lahtinen
> I added ByRef to Gambas only to help porting VB projects. In other cases, > just > don't use it, even if you find it more practical. > What is the alternative then? Pass variables as pointers? Making almost needless class for couple variables doesn't seem good option... Jussi --

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-10 Thread Jussi Lahtinen
I have no clue what this has to do with issue I'm talking about. Jussi On Sat, Sep 10, 2011 at 22:35, Fabien Bodard wrote: > 2011/9/9 Jussi Lahtinen : > > What's that supposed to do? > > Catch doesn't do catch anything since missing byref doesn't rise error! > > > > Jussi > > > it not for miss

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-10 Thread Fabien Bodard
2011/9/9 Jussi Lahtinen : > What's that supposed to do? > Catch doesn't do catch anything since missing byref doesn't rise error! > > Jussi > it not for missing data but for the routine that modify the byref data ... if this algoritm fail ... it return true so i know if the byref value have been mo

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-09 Thread Jussi Lahtinen
What's that supposed to do? Catch doesn't do catch anything since missing byref doesn't rise error! Jussi On Fri, Sep 9, 2011 at 22:51, Fabien Bodard wrote: > yes like : > > Private Function ModifyThat(byRef i as integer) as boolean > > i+=6*4 > > catch > return true > > end > > > > to use i

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-09 Thread Fabien Bodard
yes like : Private Function ModifyThat(byRef i as integer) as boolean i+=6*4 catch return true end to use it if not Modifythat(ByRef iMyVal) Then Print iMyVal sometime it can be usefull to catch the error in the calling function 2011/9/9 Jussi Lahtinen : > After I read what Fabie

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-09 Thread Jussi Lahtinen
After I read what Fabien wrote, I realised what you meant and I think you misunderstood my problem. My problem is *not *that I have to write byref to function declaration and to function call. My problem is that if I forget to write byref to function call, I will get silent bugs. I think either b

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Fabián Flores Vadell
2011/9/8 Jussi Lahtinen > > > > By having to specify ByRef in the caller, you can't forget that the > > function > > will modify your variable (forgetting that leads to hard-to-fix bugs) and > > it > > help readers of your code. > > > > Sorry, I don't understand what you mean, can you elaborate?

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Jussi Lahtinen
> > By having to specify ByRef in the caller, you can't forget that the > function > will modify your variable (forgetting that leads to hard-to-fix bugs) and > it > help readers of your code. > Sorry, I don't understand what you mean, can you elaborate? I mean I forgot to write Test(Byref i), ins

Re: [Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Benoît Minisini
> Hi! > Quick thought; it would be nice to have compiler warning if "byref" is > missing from function/sub call. > I know using byref is optional, but so far I have only forgot to add it. > > Example: > > Private Sub Test(Byref x As Integer) > ... > > And you can call it; > Test(i) > Or; > Test(

[Gambas-user] To wish list; optional compiler warning

2011-09-08 Thread Jussi Lahtinen
Hi! Quick thought; it would be nice to have compiler warning if "byref" is missing from function/sub call. I know using byref is optional, but so far I have only forgot to add it. Example: Private Sub Test(Byref x As Integer) ... And you can call it; Test(i) Or; Test(Byref i) Jussi ---

[Gambas-user] To wish list: Select with multiple variables

2011-06-20 Thread Jussi Lahtinen
I think I'm having short circuit in my brain, so this might be stupid suggestion... But I would like to see feature illustrated by following example: Select Case bVar1; bVar2; bVar3; iVar Case True; True; True; 1 To 10 'Do something Case False; True; True; 11 To 20 'Do somethin

Re: [Gambas-user] To wish list.

2011-05-30 Thread Ricardo Díaz Martín
+1 It would be great!! 2011/5/30 Jussi Lahtinen > Hi! > It would be nice to be able to change order of tabs with drag&drop, just > like in Firefox. > Maybe to Gambas 4! > > Jussi > > -- > vRanger cuts backup time in half

[Gambas-user] To wish list.

2011-05-30 Thread Jussi Lahtinen
Hi! It would be nice to be able to change order of tabs with drag&drop, just like in Firefox. Maybe to Gambas 4! Jussi -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for vir

Re: [Gambas-user] To wish list...

2010-09-04 Thread Jussi Lahtinen
OK, doesn't matter, I'll do it other way. Thanks for trying! Jussi 2010/9/4 Benoît Minisini : >> On 26/08/10 03:30, Jussi Lahtinen wrote: >> > Hi! >> > I would like to have TimeLeft property to timer object. >> > It is only missing thing which forces me to write my own delay function. >> > >> >

Re: [Gambas-user] To wish list...

2010-09-03 Thread Benoît Minisini
> On 26/08/10 03:30, Jussi Lahtinen wrote: > > Hi! > > I would like to have TimeLeft property to timer object. > > It is only missing thing which forces me to write my own delay function. > > > > So, nothing very important, but if this is easy to implement... > > > > Jussi > > I think that's a v

Re: [Gambas-user] To wish list... (Tom Harvey) (Beno?t Minisini)

2010-08-28 Thread t rat
> > System.FirstDayOfWeek has been implemented in revision #3151. > > Regards, > > -- > Beno?t Minisini > > Thank you so much Beno?t, Tom Harvey -- Sell apps to millions thr

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-28 Thread Benoît Minisini
> > Benoit, > > > > Australia, Sunday is the 1st day of the week. > > > > Regards > > Mike > > Yep. According to Wikipedia, Sunday is the first day of the week mainly in > monotheistic religions. > > So I cannot rely on the country! I must let the programmer decide, and > provide a property in

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-28 Thread Benoît Minisini
> Benoit, > > Australia, Sunday is the 1st day of the week. > > Regards > Mike > Yep. According to Wikipedia, Sunday is the first day of the week mainly in monotheistic religions. So I cannot rely on the country! I must let the programmer decide, and provide a property in the DateChooser co

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-27 Thread Mike
Benoit, Australia, Sunday is the 1st day of the week. Regards Mike On Thu, 2010-08-26 at 17:35 +0200, Benoît Minisini wrote: > > Hi, > > I would like an option in DateChooser to display Sunday as the 1st day of > > the week on DateChooser. Presently Monday (the 2nd day of the week) is > > displ

Re: [Gambas-user] To wish list... (Rolf-Werner Eilert)

2010-08-26 Thread t rat
>> Hi, >> I would like an option in DateChooser to display Sunday as the 1st day of >> the week on DateChooser. Presently Monday (the 2nd day of the week) is >> displayed as the first day of the week in DateChooser. Thanks for >> everything! >> >> Using Gambas 2.20 on PCLinuxOS 2010. >>

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-26 Thread Benoît Minisini
> > Hi, > > I would like an option in DateChooser to display Sunday as the 1st day of > > the week on DateChooser. Presently Monday (the 2nd day of the week) is > > displayed as the first day of the week in DateChooser. Thanks for > > everything! > > > > Using Gambas 2.20 on PCLinuxOS 2010. > >

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-26 Thread Benoît Minisini
> Hi, > I would like an option in DateChooser to display Sunday as the 1st day of > the week on DateChooser. Presently Monday (the 2nd day of the week) is > displayed as the first day of the week in DateChooser. Thanks for > everything! > > Using Gambas 2.20 on PCLinuxOS 2010. > Apparently the

Re: [Gambas-user] To wish list...

2010-08-26 Thread Werner
On 26/08/10 03:30, Jussi Lahtinen wrote: > Hi! > I would like to have TimeLeft property to timer object. > It is only missing thing which forces me to write my own delay function. > > So, nothing very important, but if this is easy to implement... > > Jussi I think that's a very good idea. Werner

Re: [Gambas-user] To wish list...

2010-08-26 Thread Fabien Bodard
i just want to say that i've queried something like that 3 week ago :) Something that allow to delay mouse events ... for exemple for mouse there is two case ... Mouse is in the widget during a time ... or mouse button is pressed during a time ... and for keyboard just button is pressed during a

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-26 Thread Fabien Bodard
2010/8/26 Rolf-Werner Eilert : > Am 26.08.2010 02:00, schrieb t rat: >> >> Hi, >> I would like an option in DateChooser to display Sunday as the 1st day of >> the week on DateChooser.  Presently Monday (the 2nd day of the week) is >> displayed as the first day of the week in DateChooser.  Thanks

Re: [Gambas-user] To wish list... (Tom Harvey)

2010-08-25 Thread Rolf-Werner Eilert
Am 26.08.2010 02:00, schrieb t rat: > > Hi, > I would like an option in DateChooser to display Sunday as the 1st day of the > week on DateChooser. Presently Monday (the 2nd day of the week) is displayed > as the first day of the week in DateChooser. Thanks for everything! > > Using Gambas 2.20

[Gambas-user] To wish list... (Tom Harvey)

2010-08-25 Thread t rat
Hi, I would like an option in DateChooser to display Sunday as the 1st day of the week on DateChooser. Presently Monday (the 2nd day of the week) is displayed as the first day of the week in DateChooser. Thanks for everything! Using Gambas 2.20 on PCLinuxOS 2010.

Re: [Gambas-user] To wish list...

2010-08-25 Thread Jussi Lahtinen
This time I would use it with trayicon (mouse over) to inform user about when next event is going to occur. There was an other reason long time ago when I needed that... I just couldn't remember. I wonder if it was something more general... Jussi 2010/8/25 Benoît Minisini > > Hi! > > I would l

Re: [Gambas-user] To wish list...

2010-08-25 Thread Fabien Bodard
ha ha ha ... it remember me something :) Le 25 août 2010 21:36, Benoît Minisini a écrit : >> Hi! >> I would like to have TimeLeft property to timer object. >> It is only missing thing which forces me to write my own delay function. >> >> So, nothing very important, but if this is easy to implemen

Re: [Gambas-user] To wish list...

2010-08-25 Thread Benoît Minisini
> Hi! > I would like to have TimeLeft property to timer object. > It is only missing thing which forces me to write my own delay function. > > So, nothing very important, but if this is easy to implement... > > Jussi Can you explain why you need to know that? -- Benoît Minisini --

[Gambas-user] To wish list...

2010-08-25 Thread Jussi Lahtinen
Hi! I would like to have TimeLeft property to timer object. It is only missing thing which forces me to write my own delay function. So, nothing very important, but if this is easy to implement... Jussi -- Sell apps to mi