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
>
>
> --
>
> 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
> 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
> 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
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
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?
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
> 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
--
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
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
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
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
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
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?
>
> 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
> 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(
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
---
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
+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
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
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.
>> >
>> >
> 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
>
> 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
> > 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
> 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
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
>> 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.
>>
> > 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.
>
>
> 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
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
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
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
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
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.
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
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
> 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
--
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
38 matches
Mail list logo