Re: [Gambas-user] Wrong error message

2010-05-04 Thread mike
On 05/04/2010 02:03 PM, Benoît Minisini wrote: >>> I feel something weird in using an integer variable as if it was a >>> string, and the above snippet does that. >>> >> As I said earlier, it is sometimes useful. Datatype is integer because >> all other usage of that variable is mundane

Re: [Gambas-user] WHILE and AND: please explain me....

2010-05-04 Thread Benoît Minisini
> I'm working with this little piece of code, it's the Insertion Sort: > > PUBLIC SUB InsertionSort(matrix AS String[]) > DIM i, j AS Integer > DIM x AS String > > FOR i = 1 TO (matrix.Count - 1) > x = matrix[i] > j = i - 1 > WHILE j >= 0 AND matrix[j] > x > matrix[j + 1] = ma

[Gambas-user] WHILE and AND: please explain me....

2010-05-04 Thread Leonardo Miliani
I'm working with this little piece of code, it's the Insertion Sort: PUBLIC SUB InsertionSort(matrix AS String[]) DIM i, j AS Integer DIM x AS String FOR i = 1 TO (matrix.Count - 1) x = matrix[i] j = i - 1 WHILE j >= 0 AND matrix[j] > x matrix[j + 1] = matrix[j] j -= 1

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread richard terry
On Tuesday 04 May 2010 21:44:48 Dimitris Anogiatis wrote: > Hey Ricard, > > just as a quick workaround try replacing the Open - Close code with > > File.Save(sFilename, sHTML) > > You might circumvent the "Too many files open" error, which I am unsure why > it comes up. > > Perhaps the total nu

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> This routine is called by my program, consecutively a large number of times >> during an automated process: >> >> Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As >> String = "html") >> >> Dim wFile As File >> Dim sFilename As String >> >

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Jussi Lahtinen
Intel Core2 Quad Q9550 Jussi 2010/5/4 Benoît Minisini : >> Same result with Gambas 2.20 @ Ubuntu 10.04 64bit. >> I haven't recompile after upgrade from Ubuntu 9.10, can this be reason for >> bug? I'll try recompile later. >> >> Jussi >> > > What's your CPU? > > -- > Benoît Minisini > > -

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Benoît Minisini
> Same result with Gambas 2.20 @ Ubuntu 10.04 64bit. > I haven't recompile after upgrade from Ubuntu 9.10, can this be reason for > bug? I'll try recompile later. > > Jussi > What's your CPU? -- Benoît Minisini -- ___

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Jussi Lahtinen
Same result with Gambas 2.20 @ Ubuntu 10.04 64bit. I haven't recompile after upgrade from Ubuntu 9.10, can this be reason for bug? I'll try recompile later. Jussi 2010/5/4 Benoît Minisini : >> > I feel something weird in using an integer variable as if it was a >> > string, and the above snippet

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Werner
On 05/05/10 02:03, Benoît Minisini wrote: >>> I feel something weird in using an integer variable as if it was a >>> string, and the above snippet does that. >>> >> As I said earlier, it is sometimes useful. Datatype is integer because >> all other usage of that variable is mundane math. >

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Benoît Minisini
> > I feel something weird in using an integer variable as if it was a > > string, and the above snippet does that. > > As I said earlier, it is sometimes useful. Datatype is integer because > all other usage of that variable is mundane math. > But of course there are many other ways to do same

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Benoît Minisini
> > Ok, now I understand the two code snippets above. The net result should > be an integer having value 9876543210. Apart from the fact that a simple > assignment does the same work, which leads me to think that Jussi wanted > something else, I am still not convinced about the casting (or, better

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Benoît Minisini
> > The problem is not very clear to me, but the following should be right: > gambas uses operators to cast its operands; if it was not so, then why > use "&" instead "+" to concatenate strings? But, when you use notations > like "+=", you have a variable on the left (an L-Value), not a value you

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Benoît Minisini
> This routine is called by my program, consecutively a large number of times > during an automated process: > > Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As > String = "html") > > Dim wFile As File > Dim sFilename As String > > sFilename = Temp$(prefix) & ".h

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Jussi Lahtinen
> Ok, now I understand the two code snippets above. The net result should > be an integer having value 9876543210. Apart from the fact that a simple > assignment does the same work, which leads me to think that Jussi wanted > something else, I am still not convinced about the casting (or, better, >

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Rolf Schmidt
Hi Richard > This routine is called by my program, consecutively a large number of times > during an automated process: > > Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As > String = "html") > > Dim wFile As File > Dim sFilename As String > > sFilename = Temp$(pref

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Dimitris Anogiatis
Hey Ricard, just as a quick workaround try replacing the Open - Close code with File.Save(sFilename, sHTML) You might circumvent the "Too many files open" error, which I am unsure why it comes up. Perhaps the total number of open files within your project is too much or the opening and closing

[Gambas-user] Too many open files error message

2010-05-04 Thread richard terry
This routine is called by my program, consecutively a large number of times during an automated process: Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As String = "html") Dim wFile As File Dim sFilename As String sFilename = Temp$(prefix) & ".html" wfile =

Re: [Gambas-user] Error compiling Gambas3

2010-05-04 Thread Laurent Carlier
Le mardi 04 mai 2010 10:39:52, Leonardo Miliani a écrit : > I get this error while trying to compile Gambas3 from SVN on my Arch > Linux: > > In file included from /usr/include/QtCore/qatomic.h:46:0, > from /usr/include/QtCore/qbytearray.h:45, > from /usr/include/

[Gambas-user] Error compiling Gambas3

2010-05-04 Thread Leonardo Miliani
I get this error while trying to compile Gambas3 from SVN on my Arch Linux: In file included from /usr/include/QtCore/qatomic.h:46:0, from /usr/include/QtCore/qbytearray.h:45, from /usr/include/QtCore/qstring.h:46, from /usr/include/QtCore/QString

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Doriano Blengino
Doriano Blengino ha scritto: > Benoît Minisini ha scritto: > >>> Benoît Minisini ha scritto: >>> >>> > Hi! > There's minor bug. > Overflow with concatenate operator causes wrong error message. > You can reproduce the bug with this code: > > Dim ii As Integer >