[Gambas-user] checkconfig errors

2012-02-06 Thread Demosthenes Koptsis
hi to all, i downloaded the latest svn and i see that the checkconfig fails when try to install examples. i get --- Making install in examples make[1]: Entering directory `/home/user/Downloads/Gambas/gambas3-svn4454/examples' make[2]: Entering directory

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Caveat
On Mon, 2012-02-06 at 00:14 -0800, abbat wrote: but it not work sigh Can you at least tell us the error message you got? Why do we have to try to GUESS why it's not working? -- Try before you buy = See our experts

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Caveat
Here's some working code... conn = DataAccess.getConnection() conn.Exec(delete from UTI001 where CLEF = 1, Caveat) conn.Exec(insert into UTI001 (CLEF, Langue, Backup) VALUES (1, 2, 3), Caveat, EN, C:\\Temp) rSet = conn.Exec(select * from UTI001 where CLEF = 1, Caveat) If rSet Not Null

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread GMail
On Mon, 2012-02-06 at 09:21 +0100, Caveat wrote: On Mon, 2012-02-06 at 00:14 -0800, abbat wrote: but it not work sigh Can you at least tell us the error message you got? Why do we have to try to GUESS why it's not working? Yes. At the very least PRINT the Exec string you are

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Алексей Беспалов
Try this: sql = INSERT INTO statistic (TimeCode, SessionStart, SessionEnd, Kluch, Comp) VALUES (1,2,3,4,5) MODMain.$Con.Subst(sql, T, Now(), Now(), kluch, Nc) MODMain.$Con.Exec(sql) 2012/2/6 Caveat gam...@caveat.demon.co.uk On Mon, 2012-02-06 at 00:14 -0800, abbat wrote: but it not work

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Алексей Беспалов
The string not finished! Gambas do not cut string. Print in one string. Gambas не дает разрывать строки как VB. Пиши все в одну строку. 2012/2/6 abbat abbat...@mail.ru http://old.nabble.com/file/p33270528/2012-02-06-123728_1440x900_scrot.png Caveat wrote: Here's some working code...

[Gambas-user] gb.xml.rpc sending an array from client to server

2012-02-06 Thread Francois Saidi
Hi, I am new to this mailling list, and a beginner in Gambas programming. I am facing a problem i couldn't solve by myself and i would appreciate some help of you guys. I am using the xml.rpc component, and i would like to send an array (of Date) to the server. I have the following code

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Caveat
conn.Exec(insert into UTI001 (CLEF, Langue, Backup) VALUES (1, 2, 3), Caveat, EN, C:\\Temp) This has to be ONE LINE! On Mon, 2012-02-06 at 02:40 -0800, abbat wrote: http://old.nabble.com/file/p33270528/2012-02-06-123728_1440x900_scrot.png Caveat wrote: Here's some working code...

[Gambas-user] Naming/Renaming projects

2012-02-06 Thread Rolf-Werner Eilert
This is just minor IDE thing, but it confuses me each time I want to start a new project. Guess this hasn't changed in Gambas3, correct me if I'm wrong, I just can't check on this machine here at the moment. In the dialog that asks for the project title and name, the explanations for the two

Re: [Gambas-user] gb.xml.rpc sending an array from client to server

2012-02-06 Thread Fabien Bodard
2012/2/6 Francois Saidi franc...@saidi-oliver.com: Hi, I am new to this mailling list, and a beginner in Gambas programming. I am facing a problem i couldn't solve by  myself and i would appreciate some help of you guys. I am using the xml.rpc component, and i would like to send an array (of

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Fabien Bodard
sql = INSERT INTO statistic (TimeCode, SessionStart, SessionEnd, Kluch, Comp) VALUES (1,2,3,4,5) MODMain.$Con.Subst(sql, T, Now(), Now(), kluch, Nc) MODMain.$Con.Exec(sql) i prefer like that : MODMain.$Con.Exec(INSERT INTO statistic (TimeCode, SessionStart, SessionEnd, Kluch, Comp) VALUES

Re: [Gambas-user] gb.xml.rpc sending an array from client to server

2012-02-06 Thread Francois Saidi
ok, this was not actually the real code, i've just typed this as an example. Hplus Le 06/02/2012 13:38, Fabien Bodard a écrit : 2012/2/6 Francois Saidifranc...@saidi-oliver.com: Hi, I am new to this mailling list, and a beginner in Gambas programming. I am facing a problem i couldn't solve

[Gambas-user] Freeze mouse input for a second

2012-02-06 Thread Willy Raets
Hi All, I've made a small game called Memory for my kids in Gambas 2.22. You click one picture and make it visible, click the other and make it visible, when matching pictures, disable both pictures, when not matching make invisible again after 1 sec. This all works perfectly (at least for me).

[Gambas-user] TAB on keyboard

2012-02-06 Thread Willy Raets
Hi All, When making forms I determine hierarchy of the controls on the form for navigating the form with TAB-key during runtime. This to make the forms more user friendly. Simple example: --- Application with 1 form with 3 ValueBoxes. ValBox1 and ValBox2 for input ValBox3 for output

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread M. Cs.
And I agree with Fabien I just over with the transcription of former wrongly formatted query style - query=INSERT INTO. MyConn.Exec(query) Don't use that style! You will make only troubles with escaping characters. The right way is MyConn.Exec(INSERT Into ...

Re: [Gambas-user] Freeze mouse input for a second

2012-02-06 Thread tobias
hi, Hi All, I've made a small game called Memory for my kids in Gambas 2.22. You click one picture and make it visible, click the other and make it visible, when matching pictures, disable both pictures, when not matching make invisible again after 1 sec. This all works perfectly (at

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
I am doing the same thing. Using class in place of structures. Then arrays or collections of the classes. Works great! -- Original Message --- From: Kevin Fishburne kevinfishbu...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Sun, 05 Feb 2012 02:39:43 -0500

Re: [Gambas-user] Send from .module to .class

2012-02-06 Thread nando
MFmain.Label1.text = test_string -- Original Message --- From: abbat abbat...@mail.ru To: gambas-user@lists.sourceforge.net Sent: Sat, 4 Feb 2012 15:01:59 -0800 (PST) Subject: [Gambas-user] Send from .module to .class How can I send a string test_string from Main.module to

Re: [Gambas-user] Send from .module to .class

2012-02-06 Thread Ron
But you have to tweak your project options to allow this. Regards, Ron_2nd. MFmain.Label1.text = test_string -- Original Message --- From: abbatabbat...@mail.ru To: gambas-user@lists.sourceforge.net Sent: Sat, 4 Feb 2012 15:01:59 -0800 (PST) Subject: [Gambas-user] Send

[Gambas-user] Missing symbols

2012-02-06 Thread Jussi Lahtinen
One of these days... maybe I have missed something, but any clue why Gambas programs cannot find some symbols from libc? Specifically I'm talking about fmod, my libraries (written with C) can find this without problem. And even more strange, Gambas programs can find some symbols from libc.

Re: [Gambas-user] gb.xml.rpc sending an array from client to server

2012-02-06 Thread Francois Saidi
Ok, I've checked the sources of the component and figured out my problem I have to create an RpcArray with my Date[] first before putting it into the Variant[]... Hplus Le 06/02/2012 13:38, Fabien Bodard a écrit : 2012/2/6 Francois Saidifranc...@saidi-oliver.com: Hi, I am new to this

Re: [Gambas-user] dirs and files structure of a Gambas project

2012-02-06 Thread Benoît Minisini
Le 03/02/2012 18:11, Fabián Flores Vadell a écrit : Hi. Exists any spec for the structure of directories and files (and its meaning) of a Gambas project? What I want is to know all conditions that the compiler and interpreter expect, in order to call them from the command line. I need to

Re: [Gambas-user] Freeze mouse input for a second

2012-02-06 Thread Emil Lenngren
When I did a similar game, I had some boolean variable called locked or something. In the mouse receiver event handlers, I first check if the boolean variable is set or not. If it is set, I return immediately, if not, I continue as normal. You should be able to do that as well. I should not use

[Gambas-user] DataSource DataBrowser problem

2012-02-06 Thread John Rose
I thought I'd found the solution (when I looked at the documentation again), namely to use the Update Refresh methods on the controls as per the code below: FMain.ValueBoxLatitude.Value = MDatabase.ResultSite!latitude FMain.DataSourceCountry.Connection = MDatabase.DatabaseConnection

Re: [Gambas-user] Send from .module to .class

2012-02-06 Thread Jesus
El 05/02/12 00:01, abbat escribió: How can I send a string test_string from Main.module to Label1 which situated on MFmain.class Thanks Use properties or setter and getter public functions. Not a good idea making form controls public. Regards -- Jesus Guardon

Re: [Gambas-user] DataSource DataBrowser problem

2012-02-06 Thread Benoît Minisini
Le 03/02/2012 20:51, John Rose a écrit : I've looked at the Database example and I still don't understand how to use the DataSource DataBrowser controls. My DataSourceCountry control has its Table property set to country (one of the tables in the Test.db SQLite3 database in the Data

Re: [Gambas-user] Last in group event handler called as function

2012-02-06 Thread Benoît Minisini
Le 03/02/2012 21:13, tobias a écrit : hi, consider the following (where PickColor is the event name of a group of ToogleButton controls) Public Sub Form_Open() PickColor_Click() End Public Sub PickColor_Click() Print Last End since the event handlers are just subroutines one

Re: [Gambas-user] Help for Image and Picture Colors

2012-02-06 Thread Benoît Minisini
Le 04/02/2012 01:19, tobias a écrit : On 04.02.2012 01:12, tobias wrote: Hi, I really need help. There's a lot of work with colors in Images and Pictures in a project and between these classes. This is generally speaking as follows: I have a class which has an 8*8px Image which is

Re: [Gambas-user] Editor Control (gb.qt4.ext) - Some questions.

2012-02-06 Thread Benoît Minisini
Le 05/02/2012 03:55, Ian Roper a écrit : In the Editor control from gb.qt4.ext # Context When reviewing text read from a file in an Editor Control. # Highlighting When MyEditorControl.Highlight attribute is set to 'Normal', the 'end-of-line' ( gb.crlf ) character is displayed as a

Re: [Gambas-user] Help for Image and Picture Colors

2012-02-06 Thread tobias
hi, Benoît Minisini wrote: Le 04/02/2012 01:19, tobias a écrit : On 04.02.2012 01:12, tobias wrote: Hi, I really need help. There's a lot of work with colors in Images and Pictures in a project and between these classes. This is generally speaking as follows: I have a class which has an

Re: [Gambas-user] gb.GeneralDate formatting is inconsistent

2012-02-06 Thread Zach Smith
On 2/5/2012 11:44 PM, Zach Smith wrote: only if the time is not 00:00:00 Correction - only if the time *is* 00:00:00 -- Try before you buy = See our experts in action! The most comprehensive online learning library for

Re: [Gambas-user] Send from .module to .class

2012-02-06 Thread Ron
I agree, but the supplied example doesn't work with making controls public. 2012/2/6 Jesus ea7...@ea7dfh.com El 05/02/12 00:01, abbat escribió: How can I send a string test_string from Main.module to Label1 which situated on MFmain.class Thanks Use properties or setter and

Re: [Gambas-user] Naming/Renaming projects

2012-02-06 Thread Matti
Hi Rolf, to your 1st point: in gb3 there is a wizard, asking first for the directory (and you can create a new one), then asking for the name and the title of the project. This should be ok, don't you think so? 2nd point: (also gb3) In the opening dialog you can see clearly if it is a folder or

Re: [Gambas-user] Issue 123 in gambas: GUI dependencies in library projects not exposing any gui dependency

2012-02-06 Thread gambas
Updates: Status: Started Comment #2 on issue 123 by benoit.m...@gmail.com: GUI dependencies in library projects not exposing any gui dependency http://code.google.com/p/gambas/issues/detail?id=123 If libraries do not automatically load their dependencies (like components), do you

Re: [Gambas-user] Freeze mouse input for a second

2012-02-06 Thread Willy Raets
Hi Emil, You were right on the SLEEP not doing the job. SLEEP freezes the event from being executed. But as soon as sleep time is finished the event raised during sleep time gets executed anyway. But the solution with working with booleans seems fair enough :-) I'll have a go at that.. Thanks,

Re: [Gambas-user] Issue 123 in gambas: GUI dependencies in library projects not exposing any gui dependency

2012-02-06 Thread gambas
Comment #3 on issue 123 by adamn...@gmail.com: GUI dependencies in library projects not exposing any gui dependency http://code.google.com/p/gambas/issues/detail?id=123 I'm not sure on whether that would help as I'm not clear on how both component and library loads work regarding

Re: [Gambas-user] Issue 103 in gambas: Treeview KeyRelease behaves differently with gtk and qt4

2012-02-06 Thread gambas
Comment #3 on issue 103 by adamn...@gmail.com: Treeview KeyRelease behaves differently with gtk and qt4 http://code.google.com/p/gambas/issues/detail?id=103 I think the gtk method is correct. I will look at whether this has been discussed anywhere on the QT4 internet.

Re: [Gambas-user] How To INSERT INTO in MySQL?

2012-02-06 Thread Ivan Williams
I build a array of inserts  - first item in the array is begin transaction     i19 = i19 + 1     sql = Insert into disks     sql = sql ( diskno,dirno, nof,disknum, dirnum)     sql = sql Values ('     sql = sql i17 ', ' i3 ', ' i20 ', ' tmp19

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread Kevin Fishburne
On 02/06/2012 09:36 AM, nando wrote: I am doing the same thing. Using class in place of structures. Then arrays or collections of the classes. Works great! What are the general steps to do such a thing? How do you declare a class, define its properties, then create an array of the class?

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
Quite easy. Here's a suggestion/example Make a class called Tune... ...Dim a bunch of privates for values (name, artist, date, genre) ...Write SUBs for things to do with Tunes In FMain... PUBLIC Tunes AS Object[] In a SUB somewhere... Dim newTune as NEW Tune( possible constructor