Re: [Gambas-user] Drag & Drop to KDE Desktop

2008-12-16 Thread Fabien Bodard
it's not a gambas ability the problem is to give the good data format ' Gambas class file PUBLIC SUB _new() END PUBLIC SUB Form_Open() ListBox1.Add(Application.Path &/ "FMain.form") END PUBLIC SUB ListBox1_Drag() END PUBLIC SUB ListBox1_Drop() END PUBLIC SUB Form_Drop() Message(Dra

Re: [Gambas-user] Drag & Drop to KDE Desktop

2008-12-16 Thread Doriano Blengino
M0E Lnx ha scritto: > AFAIK, such a feature doesn't exist yet... I remember asking about it > some time ago. > At least not in 2.x > > On Tue, Dec 16, 2008 at 2:15 PM, Doriano Blengino > wrote: > >> Hi list, >> >> how can I implement drag&drop with the desktop? >> >> I mean, drag an item (a fil

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread Doriano Blengino
Ron_1st ha scritto: > On Tuesday 16 December 2008, Doriano Blengino wrote: > >> Ron_1st ha scritto: >> >>> On Tuesday 16 December 2008, wig wrote: >>> >>> sImport = "< " & Application.Path & "/mytables.sql" EXEC ["mysql", sUser, sPassword, sHost, sDatabase, sImpor

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread Ron_1st
On Tuesday 16 December 2008, Doriano Blengino wrote: > Ron_1st ha scritto: > > On Tuesday 16 December 2008, wig wrote: > > > >> sImport = "< " & Application.Path & "/mytables.sql" > >> > >> EXEC ["mysql", sUser, sPassword, sHost, sDatabase, sImport] > >> > >> > > > > sImport = "< " > >

Re: [Gambas-user] Gambas3 compilation problem

2008-12-16 Thread Benoit Minisini
On mardi 16 décembre 2008, Jussi Lahtinen wrote: > Hi! > I must rise this again, it is still problem... ideas? Anyone? > I tried it again with revision 1740, and same problem. > Do I need to install something from somewhere..? > Thanks! > > > Jussi > > As briefly explained on the wiki, on the Ubun

Re: [Gambas-user] Gambas3 compilation problem

2008-12-16 Thread Jussi Lahtinen
Hi! I must rise this again, it is still problem... ideas? Anyone? I tried it again with revision 1740, and same problem. Do I need to install something from somewhere..? Thanks! Jussi On Wed, Dec 10, 2008 at 7:50 PM, Jussi Lahtinen wrote: > Hi! > > I'm on Ubuntu 8.10 64 bit. I have compiled Ga

Re: [Gambas-user] Drag & Drop to KDE Desktop

2008-12-16 Thread M0E Lnx
AFAIK, such a feature doesn't exist yet... I remember asking about it some time ago. At least not in 2.x On Tue, Dec 16, 2008 at 2:15 PM, Doriano Blengino wrote: > Hi list, > > how can I implement drag&drop with the desktop? > > I mean, drag an item (a filename, for example) to an icon on the > d

[Gambas-user] SQLite and INT4 vs. INTEGER

2008-12-16 Thread moon_walker
Hi Benoit, i am developing a cross platform application. The linux side is on GAMBAS and the Win side is on C#.NET. The common part is the SQLite database. There is some foreign relations which are coupled with comboboxes. So the child table has some foreign key fields joined to parent primary k

Re: [Gambas-user] parent of current item

2008-12-16 Thread Wally
On Tue December 16 2008 21:12:54 Doriano Blengino wrote: > Wally ha scritto: > > How to get the parent of the current item in treeview ? > > (the key's are populated by random numbers) > > > > regs wally > > > > - > >- SF.N

[Gambas-user] Drag & Drop to KDE Desktop

2008-12-16 Thread Doriano Blengino
Hi list, how can I implement drag&drop with the desktop? I mean, drag an item (a filename, for example) to an icon on the desktop, and viceversa, a file from a file manager to a running gambas application? Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two

Re: [Gambas-user] parent of current item

2008-12-16 Thread Doriano Blengino
Wally ha scritto: > How to get the parent of the current item in treeview ? > (the key's are populated by random numbers) > > regs wally > > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. >

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread Doriano Blengino
Ron_1st ha scritto: > On Tuesday 16 December 2008, wig wrote: > >> sImport = "< " & Application.Path & "/mytables.sql" >> >> EXEC ["mysql", sUser, sPassword, sHost, sDatabase, sImport] >> >> > > sImport = "< " > sSqlFile = Application.Path & "/mytables.sql" > > EXEC ["mysql", sUser,

Re: [Gambas-user] Emulating wizard Back/Next navigation

2008-12-16 Thread M0E Lnx
Bump? On Tue, Dec 16, 2008 at 7:59 AM, M0E Lnx wrote: > Attn: Fabien, > Your sample works for me, but I need a way to execute the code in each > form's _Open() or _Show() event... Or any sub for that matter. > > I noticed that the code is only ran once (the very first time the form > is loaded).

[Gambas-user] error calling external function but not when debugging

2008-12-16 Thread je ber lo
Hello, I'have resolved my problem. The approach I have taken is: In the external function in C convert the char array into a Gambas String (length + array of char) then in Gambas I get the string thru the Read #pointer, stringvar function. Could anybody confirm if this is the best approach? Re

Re: [Gambas-user] Byte I/O to serial port

2008-12-16 Thread Al Williams
-- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://a

[Gambas-user] Byte I/O to serial port

2008-12-16 Thread Al Williams
-- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://a

Re: [Gambas-user] parent of current item

2008-12-16 Thread M0E Lnx
If you do not provide a Key, gambas will assign one, but you can provide one as a string. Like this Prep -Prep0 -Prep1 Inst -Inst0 -Inst1 Conf -Conf0 -Conf1 On Tue, Dec 16, 2008 at 11:11 AM, Wally wrote: > How to get the parent of the current item in treeview ? > (the key's are po

[Gambas-user] parent of current item

2008-12-16 Thread Wally
How to get the parent of the current item in treeview ? (the key's are populated by random numbers) regs wally -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't hap

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread Ron_1st
On Tuesday 16 December 2008, wig wrote: > sImport = "< " & Application.Path & "/mytables.sql" > > EXEC ["mysql", sUser, sPassword, sHost, sDatabase, sImport] > sImport = "< " sSqlFile = Application.Path & "/mytables.sql" EXEC ["mysql", sUser, sPassword, sHost, sDatabase, sImport, sSqlFi

[Gambas-user] Error on Connection when closing

2008-12-16 Thread David Villalobos Cambronero
Hi, I got an error when close my connection at runtime, the error is easy, the connection is not closed, it still accepts queries. Is the .Close() Method supposed to close the connection meaning that it won't accept queries or I'm wrong. See the attached example. Gambas 3, svn 1740, Mandriva 20

[Gambas-user] last line of editor

2008-12-16 Thread Demosthenes Koptsis
Hi to all, i have a text area and i want when i feed text to it to go to the last line of it, so i wrote the next code that works fine PUBLIC SUB txaSQL_Change() txaSQL.Pos = Len(txaSQL.Text) END how can i have the same result with an editor control? -- Γεια χαρα σε όλους!!! Regards, De

Re: [Gambas-user] import mysql dump EXEC parameters?

2008-12-16 Thread wig
Indeed, can be extended to intercept the command shell error, rest is the same, in the end it is one big string that is deliverd to SHELL. But with EXEC, it seems to be different: separate parameters are to be delivered and it is not clear how to deliver the part with the sql file: This does not

Re: [Gambas-user] Emulating wizard Back/Next navigation

2008-12-16 Thread M0E Lnx
Attn: Fabien, Your sample works for me, but I need a way to execute the code in each form's _Open() or _Show() event... Or any sub for that matter. I noticed that the code is only ran once (the very first time the form is loaded). Can you suggest a way of doing this? On Mon, Dec 15, 2008 at 12:0

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread Jack
Le mardi 16 décembre 2008 12:20:06 wig, vous avez écrit : > > wig wrote: > >> Although I can create table by table from within Gambas with > >> hCon.Databases.Add(sDbName), I wondered if there is a way to "import" a > >> mysql dump file, so that I can create the tables with data (in one > >> comman

Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-16 Thread wig
> wig wrote: >> Although I can create table by table from within Gambas with >> hCon.Databases.Add(sDbName), I wondered if there is a way to "import" a >> mysql dump file, so that I can create the tables with data (in one >> command). >> >> Untill now I allways used phpMyAdmin dump/export and impor