Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Rolf-Werner Eilert
Thanks a lot Ron for your explanation, I did read it line by line and found it explains it very well for me. For instance, I didn't realize that operators have a relational order, too. Just one question left: > arith-order > ^ * / sqr + - (Dutch trick:Meneer Van Dale Wacht Op Antwoord)

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
Bugzilla from gam...@users.sourceforge.net wrote: > > I fixed the bug in revision #2337. It was not 64 bits related at all. > > Thanks. I'm assuming revision #2337 is in the 2.x development branch, as I just compiled and ran 2.16.0 and it has the same problem. Looks like it was GTK-related, a

Re: [Gambas-user] Treeview auto resize

2009-09-17 Thread Dan Sheffner
I found this code but when I have a ton of rows it stalls the app: Trying to find a solution for a treeview that has 100,000+ records. PUBLIC SUB AdjustGridColumns(pPassedGrid AS TableView) DIM $Row AS Integer DIM $Col AS Integer DIM MaxWidth AS Integer MaxWidth = 0 WITH pPassedGrid

[Gambas-user] Treeview auto resize

2009-09-17 Thread Dan Sheffner
Does anyone have a sub or the code to automatically resize columns on a trueview to fit text? Thanks in advance. -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to

[Gambas-user] I made a mistake again

2009-09-17 Thread Benoît Minisini
By adding a "clear internal html cache" feature to the wiki, I made a mistake again, and erased all images stored in the wiki. :-( Hopefully, I have saved the database, but it was a few weeks ago, so all images inserted in the wiki after 26 Jul 2009 are lost! I'm really sorry for the inconvenie

Re: [Gambas-user] another IDE cut/n paste behaviour

2009-09-17 Thread Charlie Reinl
Am Mittwoch, den 09.09.2009, 12:58 +0200 schrieb Benoît Minisini: > > Salut, > > > > on gambas2 and gambas3 (since month) in code editor CTRL+C not always > > works. > > CTRL+V is OK, CTRL+X (I haven't tested) > > > > ContextMenu/Copy works well. > > > > Is that a gambas behaviour or Linux/Ubunt

[Gambas-user] Grid View and Mysql Result, Time Data

2009-09-17 Thread Demosthenes Koptsis
I have a gridview control and i fill it with values from a mysql $RESULT with the next code PUBLIC SUB grdView_Data(Row AS Integer, Column AS Integer) $Result.MoveTo(Row) grdView.Data.Text = Str($Result[grdView.Columns[Column].Text]) END The problem now. When value is Date with mysql form

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Ron_1st
On Thursday 17 September 2009, Rolf-Werner Eilert wrote: > Benoît Minisini schrieb: > >> Rolf-Werner Eilert wrote: > >>> Just stumbled over this when trying to implement a small copying > >>> function: > >>> > >>>FOR EACH datei IN Dir(opfad, odatei & ".*") > >>> IF NOT file.Ext(opfad &/ da

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Ron_1st
On Thursday 17 September 2009, Rolf-Werner Eilert wrote: > Just stumbled over this when trying to implement a small copying function: > >FOR EACH datei IN Dir(opfad, odatei & ".*") > IF NOT file.Ext(opfad &/ datei) = "lock" THEN >COPY opfad &/ datei TO ziel &/ datei >SELEC

[Gambas-user] Problem accessing PostreSQL schemas

2009-09-17 Thread José Luis Castro
Hola. Cree un esquema en una base de datos PostgreSQL. La sintaxis para acceder a los datos del esquema es: esquema.NombreTabla. Funciona bien cuanto utilizo el método .exec (p.e: "SELECT * FROM schema.tableName" or "INSERT INTO schema.tableName VALUES..."), pero no funciona cuando intento utilizar

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread Benoît Minisini
> joshiggins wrote: > > I'm running 32-bit Gambas 2.8 (the one in Jaunty) and I don't seem to get > > this problem. Granted I'm not adding 13000 strings, more like 200. > > > > Are you using the gtk or qt component? > > I'm using gtk. I need to correct my previous post. Whether it's set via the >

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Rolf-Werner Eilert
Benoît Minisini schrieb: >> Rolf-Werner Eilert wrote: >>> Just stumbled over this when trying to implement a small copying >>> function: >>> >>>FOR EACH datei IN Dir(opfad, odatei & ".*") >>> IF NOT file.Ext(opfad &/ datei) = "lock" THEN >>>COPY opfad &/ datei TO ziel &/ datei >>>

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Rolf-Werner Eilert
Benoît Minisini schrieb: >> Rolf-Werner Eilert wrote: >>> Just stumbled over this when trying to implement a small copying >>> function: >>> >>>FOR EACH datei IN Dir(opfad, odatei & ".*") >>> IF NOT file.Ext(opfad &/ datei) = "lock" THEN >>>COPY opfad &/ datei TO ziel &/ datei >>>

Re: [Gambas-user] qt4 and form.controls

2009-09-17 Thread Benoît Minisini
> Noticed same thing. Although "Me.Children" works. > Me.Controls.Count is not zero, but enumeration doesn't happen at all. > With Qt3 all works as expected. > > @Ubuntu 9.04 64bit > > Jussi > > On Thu, Sep 17, 2009 at 15:37, nero wrote: > > hi , > > > > I'm trying some of my code on gambas3 to

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Benoît Minisini
> Rolf-Werner Eilert wrote: > > Just stumbled over this when trying to implement a small copying > > function: > > > >FOR EACH datei IN Dir(opfad, odatei & ".*") > > IF NOT file.Ext(opfad &/ datei) = "lock" THEN > >COPY opfad &/ datei TO ziel &/ datei > >SELECT CASE file.Ex

Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Lee McPherson
Rolf-Werner Eilert wrote: > Just stumbled over this when trying to implement a small copying function: > >FOR EACH datei IN Dir(opfad, odatei & ".*") > IF NOT file.Ext(opfad &/ datei) = "lock" THEN >COPY opfad &/ datei TO ziel &/ datei >SELECT CASE file.Ext(ziel &/ datei) >

Re: [Gambas-user] qt4 and form.controls

2009-09-17 Thread Jussi Lahtinen
Noticed same thing. Although "Me.Children" works. Me.Controls.Count is not zero, but enumeration doesn't happen at all. With Qt3 all works as expected. @Ubuntu 9.04 64bit Jussi On Thu, Sep 17, 2009 at 15:37, nero wrote: > hi , > > I'm trying some of my code on gambas3 to be ready when it's don

[Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?

2009-09-17 Thread Rolf-Werner Eilert
Just stumbled over this when trying to implement a small copying function: FOR EACH datei IN Dir(opfad, odatei & ".*") IF NOT file.Ext(opfad &/ datei) = "lock" THEN COPY opfad &/ datei TO ziel &/ datei SELECT CASE file.Ext(ziel &/ datei) CASE "fehl", "feldbak", "felder

[Gambas-user] gambas output

2009-09-17 Thread yuhej
Hello, >From my application I need to create some standard output files. When I used VB I usually put out data to Excel files. It has the advantage that everyone can open and edit and I can use templates. Do we have a simillar option from Gambas? Fo instance to write into Open Office Calc files?

[Gambas-user] qt4 and form.controls

2009-09-17 Thread nero
hi , I'm trying some of my code on gambas3 to be ready when it's done. I've some problem with form controls using qt4 , i've a form with n controls and want to enumerate them . I'm using somethink like: Public Sub Button1_Click() Dim ch As Obje

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
joshiggins wrote: > > I'm running 32-bit Gambas 2.8 (the one in Jaunty) and I don't seem to get > this problem. Granted I'm not adding 13000 strings, more like 200. > > Are you using the gtk or qt component? > I'm using gtk. I need to correct my previous post. Whether it's set via the GUI is

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread Joshua Higgins
I'm running 32-bit Gambas 2.8 (the one in Jaunty) and I don't seem to get this problem. Granted I'm not adding 13000 strings, more like 200. Are you using the gtk or qt component? -- joshua higgins >>-- -- Come b

Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
kevinfishburne wrote: > > I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included > with Ubuntu 9.04 and 9.10 and the same thing happens. > I just upgraded GAMBAS to 2.15.2 borrowing from Debian's current unstable repository and the problem persists. - Kevin Fishburne,

[Gambas-user] GAMBAS crash when setting columnview's Sorted property

2009-09-17 Thread kevinfishburne
I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included with Ubuntu 9.04 and 9.10 and the same thing happens. It may also happen with the listbox, listview or similar controls if they use the same code. If I set a columnview's Sorted property to TRUE in the GUI it works fine, b