Re: [Gambas-user] Paste bug in IDE

2014-05-31 Thread David Robertson
This happens to me if I accidently click the mouse wheel when I'm scrolling up or down a code module. I'm not normally aware of the paste operation as I've scrolled it off the screen and only discover it later. Not a bug, just clumsy mouse control. I'm running Unity on Ubuntu 14.04, but it happene

[Gambas-user] gb.xml: XMLElement.GetChildrenByAttributeValue with multiple criteria

2014-05-31 Thread B Bruen
In essence, I want to select all (first level) child elements of the current element where attribute "Type"="R" and attribute "Status"="Open", in one hit. Is this possible? tia Bruce -- B Bruen -- Time is money. Stop

Re: [Gambas-user] Request for comments about a language change

2014-05-31 Thread B Bruen
The only possible problem I can think of is where the enumerated set "becomes" null during the iteration. But quick testing shows that the iteration is done on a copy of the set as at when the For Each is first entered. On the other hand, you might want the enumeration to "automatically end" in

Re: [Gambas-user] Draw accuracy problem

2014-05-31 Thread Jussi Lahtinen
[System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-27-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=XFCE Theme=QGtk Language=en_US.UTF-8 Memory=3953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30

Re: [Gambas-user] Draw accuracy problem

2014-05-31 Thread Jussi Lahtinen
Same problem with r6297. Jussi On Sun, Jun 1, 2014 at 3:36 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 01/06/2014 01:07, Jussi Lahtinen a écrit : > > Another try to focus... I'm drawing line from last point to current > point, > > so that current point became last point, and

Re: [Gambas-user] Draw accuracy problem

2014-05-31 Thread Benoît Minisini
Le 01/06/2014 01:07, Jussi Lahtinen a écrit : > Another try to focus... I'm drawing line from last point to current point, > so that current point became last point, and new current point is > calculated. And so on. See attachment. > So I expect to have continuous line, but I have loops and cuts..?

Re: [Gambas-user] Request for comments about a language change

2014-05-31 Thread Jussi Lahtinen
Oh, of course all enumerable classes, I was thinking command ENUM... I try to think whether there could be situation where this would hide error in code. If for some error you pass Null object to this: Public Function CountLargeObjects(hArrayOfObjects As Object[]) As Integer Dim hObject As Obje

Re: [Gambas-user] Request for comments about a language change

2014-05-31 Thread B Bruen
> On Sat, May 31, 2014 at 2:38 PM, Benoît Minisini < > gam...@users.sourceforge.net> wrote: > > > Hi people, > > > > Does anybody have an objection against the following change: > > > > "For Each Value In Enumeration" raise an error if `Enumeration` is NULL. > > > > I suggest that instead it does

[Gambas-user] Draw accuracy problem

2014-05-31 Thread Jussi Lahtinen
Another try to focus... I'm drawing line from last point to current point, so that current point became last point, and new current point is calculated. And so on. See attachment. So I expect to have continuous line, but I have loops and cuts..? See attached screenshot. Jussi DrawAccuracyProblem

Re: [Gambas-user] Draw.LineStyle = Line.dot bug?

2014-05-31 Thread Jussi Lahtinen
Thanks! Jussi On Sat, May 31, 2014 at 10:47 PM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 31/05/2014 21:16, Jussi Lahtinen a écrit : > > Screenshot added. > > > > Jussi > > > > > > On Sat, May 31, 2014 at 10:12 PM, Jussi Lahtinen < > jussi.lahti...@gmail.com> > > wrote: > > >

Re: [Gambas-user] Draw.LineStyle = Line.dot bug?

2014-05-31 Thread Benoît Minisini
Le 31/05/2014 21:16, Jussi Lahtinen a écrit : > Screenshot added. > > Jussi > > > On Sat, May 31, 2014 at 10:12 PM, Jussi Lahtinen > wrote: > >> Is there something I don't see (possible, hurt my back I'm on tizanidine) >> or is this some weird bug? >> Draw.LineStyle = Line.dot works in my other ap

[Gambas-user] Draw.LineStyle = Line.dot bug?

2014-05-31 Thread Jussi Lahtinen
Is there something I don't see (possible, hurt my back I'm on tizanidine) or is this some weird bug? Draw.LineStyle = Line.dot works in my other apps, but not in this. I made little demonstration project (attached). I expect the red vertical lines to be dotted. Jussi DotLineProblem-0.0.1.tar.g

Re: [Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Patrik Karlsson
2014-05-31 17:49 GMT+02:00 Jussi Lahtinen : > Oh, in this case use IsInteger(). > > Jussi > > Got it, thanks! -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/r

Re: [Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Jussi Lahtinen
It's correct, NULL is not same as zero. I suggest you use IsNumber() to determine if the string can be converted. Jussi On Sat, May 31, 2014 at 12:48 PM, Patrik Karlsson wrote: > Should not CInt("") return 0? > > Print cint("") > Type mismatch: wanted Integer, got String instead > > /Patrik >

Re: [Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Jussi Lahtinen
Oh, in this case use IsInteger(). Jussi On Sat, May 31, 2014 at 6:48 PM, Jussi Lahtinen wrote: > It's correct, NULL is not same as zero. > I suggest you use IsNumber() to determine if the string can be converted. > > Jussi > > > On Sat, May 31, 2014 at 12:48 PM, Patrik Karlsson > wrote: > >>

Re: [Gambas-user] Request for comments about a language change

2014-05-31 Thread Jussi Lahtinen
Maybe I'm missing something, but why there would be empty enums? I use it only to declare constants. So, at least I can't see any problems from this. Jussi On Sat, May 31, 2014 at 2:38 PM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Hi people, > > Does anybody have an objection ag

Re: [Gambas-user] Function() vs Function$()

2014-05-31 Thread Benoît Minisini
Le 31/05/2014 16:59, Patrik Karlsson a écrit : > Why do we have both Function() and Function$() in Gambas? > e.g. Subst and Subst$, Left and Left$ > > Is it an old Basic convention? Yes. I'm not really "No more tradition's chains shall bind us" (american lyrics of french "Du passé faisons table r

[Gambas-user] Function() vs Function$()

2014-05-31 Thread Patrik Karlsson
Why do we have both Function() and Function$() in Gambas? e.g. Subst and Subst$, Left and Left$ Is it an old Basic convention? Which variant is most desirable to use? /Patrik -- Time is money. Stop wasting it! Get your we

Re: [Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Fabián Flores Vadell
I think that the result is correct. ?Cint("0") 0 Try this in the gambas console to see how Gambas evaluate empty strings: ? if("", "Hola", "aloH") aloH ? ["Item":Null].count 0 ? ["Item":""].count 0 ?isnull("") True 2014-05-31 6:48 GMT-03:00 Patrik Karlsson : > Should not CInt("") return 0? >

Re: [Gambas-user] Param values can't be watched

2014-05-31 Thread Fabián Flores Vadell
Thanks Benoit, you are the Messi of BASIC based languages ;-) and thank you VonZorch, I knew that workaround, but you reminder help me to re-think my code. 2014-05-30 15:40 GMT-03:00 Benoît Minisini : > Le 30/05/2014 00:34, Fabián Flores Vadell a écrit : > > Hi folks. > > > > Just that, regardl

[Gambas-user] Fwd: Wiki Last Changes - Admin Only

2014-05-31 Thread Patrik Karlsson
> > Nice! > Could we also have links to the changed page in the list? :) > > /Patrik > > >Done. > >-- >Benoît Minisini Awesome! -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download htt

[Gambas-user] Request for comments about a language change

2014-05-31 Thread Benoît Minisini
Hi people, Does anybody have an objection against the following change: "For Each Value In Enumeration" raise an error if `Enumeration` is NULL. I suggest that instead it does nothing, as if Enumeration was a void array. What do you think? -- Benoît Minisini -

Re: [Gambas-user] Wiki Last Changes - Admin Only

2014-05-31 Thread Patrik Karlsson
2014-05-30 21:29 GMT+02:00 Benoît Minisini : > Le 29/05/2014 22:28, Patrik Karlsson a écrit : > > Would it be possible to enable read access to > > http://gambaswiki.org/wiki/changes ? > > > > Every now and then I discover that a page has change and I think it would > > be of value to see what pag

Re: [Gambas-user] ComboBox not editable + Combopbox_Change Event

2014-05-31 Thread Benoît Minisini
Le 31/05/2014 11:49, abbat81 a écrit : > How to prevent editing any text in a ComboBox ? > I can do it by "ReadOnly", but at I lose Combobox_Change Event. > So, how to prevent editing any text in a ComboBox ? > Set ReadOnly to TRUE, and don't use the Change event, but the Click event. Change eve

Re: [Gambas-user] ComboBox not editable + Combopbox_Change Event

2014-05-31 Thread abbat81
How to prevent editing any text in a ComboBox ? I can do it by "ReadOnly", but at I lose Combobox_Change Event. So, how to prevent editing any text in a ComboBox ? -- View this message in context: http://gambas.8142.n7.nabble.com/ComboBox-not-editable-Combopbox-Change-Event-tp46748p46768.html

[Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Patrik Karlsson
Should not CInt("") return 0? Print cint("") Type mismatch: wanted Integer, got String instead /Patrik -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet

[Gambas-user] A smtpClient question

2014-05-31 Thread Jorge Carrión
I've a Sub to send email. If I send a no-attachment mail all is OK. If I send a non-text attached file, All is Ok. But If I send a mail with a text file attached then the mail sended contains the text that I send AND the text inside the attached file as body... AND the text file attached too. My