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
> 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
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
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
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
>>
>
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
>
> -
> 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
--
___
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
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.
>
> > 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
>
> 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
>
> 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
> 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
> 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,
>
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
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
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 =
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/
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
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
>
20 matches
Mail list logo