Re: [Gambas-user] Question about read/write file performance

2010-11-26 Thread Benoît Minisini
> Hi, > > Maybe this is a basic question. I have 2 scripts like this: > > Code 1: > Dim buff as *Byte* > sizeOfFile = Stat("aBigFile").Size > > hFile = Open "aBigFile" for read > For i = 1 to sizeOfFile > Read hFile, buff > Next > Close hFile > > Code 2: > Dim buff as *Byte* > Dim bigBuff as *F

Re: [Gambas-user] Rev. 3199 - Gambas 3

2010-11-26 Thread Benoît Minisini
> OS: Ubuntu 9.10 - 32bits > Gnome : 2.28 > Monitor : res. 1360x768 > > [GB.FORM] > > *BUG: The icons in the Console tab, not shown completely. >See.Image.png > > Regards. > > Cristian Abarzúa F. Is it better with the latest revision? -- Benoît Minisini -

Re: [Gambas-user] Primary Key missing?

2010-11-26 Thread Benoît Minisini
> hi, > > > So I'm wondering whether your Edit might not work better if you were to > > > > try: > > hResult = hConnection.Edit("test", "id=&1", 1) > > hResult["name"] = "Adam" > > hResult.Update > > hResult.Commit > > this gives the same error, i changed the tables creation to >

Re: [Gambas-user] Primary Key missing?

2010-11-26 Thread tobias
hi, > So I'm wondering whether your Edit might not work better if you were to > try: > > hResult = hConnection.Edit("test", "id=&1", 1) > hResult["name"] = "Adam" > hResult.Update > hResult.Commit > > this gives the same error, i changed the tables creation to hConnection.Exec

Re: [Gambas-user] Convert path of drop file

2010-11-26 Thread Benoît Minisini
> Hi, > > I try to get input file by drag and drop file from Nautilus onto my form. > But the path that I got is HTML format, so I have trouble with the path > including space or unicode characters. > How to convert this path to normal path so I can work with OPEN statement. When receiving a drop

[Gambas-user] Convert path of drop file

2010-11-26 Thread Phạm Quang Dương
Hi, I try to get input file by drag and drop file from Nautilus onto my form. But the path that I got is HTML format, so I have trouble with the path including space or unicode characters. How to convert this path to normal path so I can work with OPEN statement. --

Re: [Gambas-user] Result object, again

2010-11-26 Thread Benoît Minisini
> On Thu, 2010-11-25 at 20:06 +0100, tobias wrote: > > > A result object stores the entire query of the result in memory, > > > > because of > > > > > the stupidity of most SQL backends. > > Hmmm, I'd take that statement with a grain of salt. When working on > databases at work, I think we'd ha

Re: [Gambas-user] Result object, again

2010-11-26 Thread Caveat
On Thu, 2010-11-25 at 20:06 +0100, tobias wrote: > > A result object stores the entire query of the result in memory, > because of > > the stupidity of most SQL backends. Hmmm, I'd take that statement with a grain of salt. When working on databases at work, I think we'd have soon run into majo

Re: [Gambas-user] Primary Key missing?

2010-11-26 Thread Caveat
> by the way... i found that i wasn't able to even find a command to edit > > a record in terminal; i wanted to proof if the sqlite3 program with the > > same commands would tell me the same... > Use sqlite, specify the name of the database on the command line... $ sqlite mytest.db SQLite versio

Re: [Gambas-user] Primary Key missing?

2010-11-26 Thread Caveat
>hConnection.Exec("create table test(id integer primary key, name > varchar(10));") > didn't i specify one creating > the table? Yes, you did indeed. You specified id. :-) So I'm wondering whether your Edit might not work better if you were to try: hResult = hConnection.Edit("test", "i