[Gambas-user] GAMBAS crash when setting columnview's Sorted property
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, but every time I call the Add method of the control it sorts the data in the columnview. I have a loop that adds 13000+ strings to the control, so sorting it each time one of these is added makes it incrementally slower. Eventually it becomes so slow it is useless. My workaround was to set the Sorted property to FALSE before the loop starts, add the 13000+ strings, then set the Sorted property back to TRUE. This would mean the columnview control was only sorted once and would be much faster. If I set the control's Sorted property through the GUI as FALSE, run the loop, then programmatically change it to TRUE, it works great and is fast. However after that if I set the control to FALSE programmatically it will crash, which leads me to believe it's a bug. I need to set it to FALSE again because later I have to clear the columnview and add different items to it. It shouldn't make any difference if I set the control's Sorted property via the GUI or programmatically, but it does. If this is a bug, has it been fixed in 2.16.0? - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25486385.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25487136.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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 build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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 irrelevant. Setting it to FALSE after it's been set to TRUE (by any method) is what crashes it. It also needs to contain data. If it's empty then it won't crash. I've tried a columnview with 1 and three columns and data sizes as small as 48 strings. Here's the code snippet: ColumnView_Collection.Sorted = FALSE WHILE NOT Eof(FileCollection) LINE INPUT #FileCollection, s ColumnView_Collection.Add(Record - 1, s) ColumnView_Collection[Record - 1][1] = Some directory ColumnView_Collection[Record - 1][2] = Some size Record = Record + 1 WEND ColumnView_Collection.Sorted = TRUE It crashes at ColumnView_Collection.Sorted = FALSE anytime it's already sorted and contains data. Is there a way to erase the columnview's contents completely without destroying the control? I use ColumnView_Collection.Clear prior to setting .Sorted to FALSE but it makes no difference. If I could get it back to its virgin state (before I added keys to it) I can work around the issue. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25488985.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] qt4 and form.controls
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 Object For Each ch In Me.Controls ta.Insert(ch.name \n) Next End (note: ta is a textarea) using qt3 i see all controls , but with qt4 i get nothink and also no error. I'm using svn 2336. thanks, marco. -- Se mi etichetti, mi annulli. -- Kirkegaard -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt4 and form.controls
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 tmp2...@retesintesi.it wrote: 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 Object For Each ch In Me.Controls ta.Insert(ch.name \n) Next End (note: ta is a textarea) using qt3 i see all controls , but with qt4 i get nothink and also no error. I'm using svn 2336. thanks, marco. -- Se mi etichetti, mi annulli. -- Kirkegaard -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?
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) CASE fehl, feldbak, felder, notizen SHELL chgrp kartei ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT CASE konto, kontobak, ktx, ktxbak SHELL chgrp konto ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT END SELECT END IF NEXT IF NOT ... = ... THEN wouldn't copy anything, although only one file has the given extension. When I change this line into IF file.Ext(opfad / datei) lock THEN everything runs as expected. Doesn't make sense to me as both ways should mean the same in my understanding of logical NOT (which doesn't mean too much... :-) ) Regards Rolf From the docs, NOT is an operator that makes a boolean it's opposite (TRUE turns to FALSE and vice versa) and will also invert each bit in an integer. NOT(11) = -12 because that's what you get when you change every bit from on to off and vice versa. From other examples in the docs, if you NOT a string with something in it, you will get FALSE. However, if you NOT an empty string, you will get TRUE. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?
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) CASE fehl, feldbak, felder, notizen SHELL chgrp kartei ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT CASE konto, kontobak, ktx, ktxbak SHELL chgrp konto ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT END SELECT END IF NEXT IF NOT ... = ... THEN wouldn't copy anything, although only one file has the given extension. When I change this line into IF file.Ext(opfad / datei) lock THEN everything runs as expected. Doesn't make sense to me as both ways should mean the same in my understanding of logical NOT (which doesn't mean too much... :-) ) Regards Rolf From the docs, NOT is an operator that makes a boolean it's opposite (TRUE turns to FALSE and vice versa) and will also invert each bit in an integer. NOT(11) = -12 because that's what you get when you change every bit from on to off and vice versa. From other examples in the docs, if you NOT a string with something in it, you will get FALSE. However, if you NOT an empty string, you will get TRUE. In other words, try to use brackets: IF NOT (...) = ... THEN -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] qt4 and form.controls
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 tmp2...@retesintesi.it wrote: 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 Object For Each ch In Me.Controls ta.Insert(ch.name \n) Next End (note: ta is a textarea) using qt3 i see all controls , but with qt4 i get nothink and also no error. I'm using svn 2336. thanks, marco. -- Se mi etichetti, mi annulli. -- Kirkegaard OK, it should be fixed in the next commit. Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?
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 SELECT CASE file.Ext(ziel / datei) CASE fehl, feldbak, felder, notizen SHELL chgrp kartei ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT CASE konto, kontobak, ktx, ktxbak SHELL chgrp konto ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT END SELECT END IF NEXT IF NOT ... = ... THEN wouldn't copy anything, although only one file has the given extension. When I change this line into IF file.Ext(opfad / datei) lock THEN everything runs as expected. Doesn't make sense to me as both ways should mean the same in my understanding of logical NOT (which doesn't mean too much... :-) ) Regards Rolf From the docs, NOT is an operator that makes a boolean it's opposite (TRUE turns to FALSE and vice versa) and will also invert each bit in an integer. NOT(11) = -12 because that's what you get when you change every bit from on to off and vice versa. From other examples in the docs, if you NOT a string with something in it, you will get FALSE. However, if you NOT an empty string, you will get TRUE. In other words, try to use brackets: IF NOT (...) = ... THEN Aaah - ok, now it's clear to me, too ;-) Regards Rolf -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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 irrelevant. Setting it to FALSE after it's been set to TRUE (by any method) is what crashes it. It also needs to contain data. If it's empty then it won't crash. I've tried a columnview with 1 and three columns and data sizes as small as 48 strings. Here's the code snippet: ColumnView_Collection.Sorted = FALSE WHILE NOT Eof(FileCollection) LINE INPUT #FileCollection, s ColumnView_Collection.Add(Record - 1, s) ColumnView_Collection[Record - 1][1] = Some directory ColumnView_Collection[Record - 1][2] = Some size Record = Record + 1 WEND ColumnView_Collection.Sorted = TRUE It crashes at ColumnView_Collection.Sorted = FALSE anytime it's already sorted and contains data. Is there a way to erase the columnview's contents completely without destroying the control? I use ColumnView_Collection.Clear prior to setting .Sorted to FALSE but it makes no difference. If I could get it back to its virgin state (before I added keys to it) I can work around the issue. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 I fixed the bug in revision #2337. It was not 64 bits related at all. If you want to show a lot of data in columns, I suggest using a GridView for that. Sorted view controls are very slow in GTK+, even if I hack a lot to workaround the problem. Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Problem accessing PostreSQL schemas
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 el método .edit Translation Hello. I've created a schema in a PostreSQL database. The sintax for accessing data from the schema is: schema.tableName That works fine when trying with .exec method (i.e. SELECT * FROM schema.tableName or INSERT INTO schema.tableName VALUES...), but it doesn't work when I try to use the .edit method Thanks for your help, and sorry for my english José L. Castro Argentina -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?
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 SELECT CASE file.Ext(ziel / datei) CASE fehl, feldbak, felder, notizen SHELL chgrp kartei ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT CASE konto, kontobak, ktx, ktxbak SHELL chgrp konto ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT END SELECT END IF NEXT IF NOT ... = ... THEN wouldn't copy anything, although only one file has the given extension. When I change this line into IF file.Ext(opfad / datei) lock THEN everything runs as expected. Doesn't make sense to me as both ways should mean the same in my understanding of logical NOT (which doesn't mean too much... :-) ) Regards Rolf Just for information You have a condition, it can be true or false and this is a boolean value. NOT inverts the boolean value, here just after it in the line. a = b The '=' is a assignment, Set a to the value of b if a = b then The '=' is here a relational operator, just as '', '' are. note: in all examples below text between '[' and ']' are optional values/expresions, etc Syntax diagram for IF...THEN : IF _relational-expression_ [ _relational-operator_ _relational-expression_ ] THEN _relational-expresion_ : _expression_ [ _relational-operator_ _expression_ ] _expression_ : variable [ arithmetic-operator variable ] _variable_: name of the variable About operators: _relational-operator_ : any of '', '=', '' or combination i.e. '=', '=', '=', '=' _logical-operator_ : a symbol/name for operating on boolean values AND | OR XOR NOT _arithmetic-operator_ : + - * / \ % for plus, min, multiply, integerdivide and modulo --- Order of operations: Operations are done in special ordered sequence (presedence) highest-order () as i.e. ( _anything_ [ _any-operator_ _anything_] ) arith-order ^ * / sqr + - (Dutch trick:Meneer Van Dale Wacht Op Antwoord) relational-order there is one but I need to look up the correct one. 1 = 2 = or 3 = = or = logical-order OR AND (not sure Its a long time ago (around 1978) I did write this expresion evaluator for Basic. Was interesting stuff to do. For the usage of AND in the IF...THEN you use variableA AND variableB variableA OR variableB variableA XOR variableB NOT variableA - BE CAREFULL, only the first and only one (1) following is used for NOT if you have more following then they must be first evaluated and need '(' and ')' around it !! In a asignment as: bMyVariableC = variableA XOR variableB or bMyVariableC = NOT variableA Look now close to your line. IF NOT file.Ext(opfad / datei) = lock THEN What you say here is, do a NOT operation on the boolean value 'file.Ext(opfad / datei)' and compare it to a string lock the parts are 1 NOT file.Ext(opfad / datei) 2 = 3 lock You did want however test for the equality of 'file.Ext(opfad / datei) = lock' and if this is not equal then use the THEN code. These are two strings and if they are equal the result is boolean TRUE. For the inverse you need then use the NOT on the result. This way you should have used. IF NOT ( file.Ext(opfad / datei) = lock ) THEN I know a very long answer but it just information also for other how it is more or less is working and why you got the wrong behaviour in first place. IF file.Ext(opfad / datei) lock THEN is the good replacement for the IF NOT ( TRUE ) THEN Best regards, Ron_1st -- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Doesn't IF NOT exist? Bug or feature? Or my bad logic?
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 / datei) = lock THEN COPY opfad / datei TO ziel / datei SELECT CASE file.Ext(ziel / datei) CASE fehl, feldbak, felder, notizen SHELL chgrp kartei ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT CASE konto, kontobak, ktx, ktxbak SHELL chgrp konto ziel / datei WAIT SHELL chmod 660 ziel / datei WAIT END SELECT END IF NEXT IF NOT ... = ... THEN wouldn't copy anything, although only one file has the given extension. When I change this line into IF file.Ext(opfad / datei) lock THEN everything runs as expected. Doesn't make sense to me as both ways should mean the same in my understanding of logical NOT (which doesn't mean too much... :-) ) Regards Rolf From the docs, NOT is an operator that makes a boolean it's opposite (TRUE turns to FALSE and vice versa) and will also invert each bit in an integer. NOT(11) = -12 because that's what you get when you change every bit from on to off and vice versa. From other examples in the docs, if you NOT a string with something in it, you will get FALSE. However, if you NOT an empty string, you will get TRUE. In other words, try to use brackets: IF NOT (...) = ... THEN Aaah - ok, now it's clear to me, too ;-) Regards Rolf Funny isn't it ?? :) :) Best regards, Ron_1st -- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Grid View and Mysql Result, Time Data
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 format %Y-%m-%d the gridview shows 00:00:00 instead :00:00 when the value of result is empty and change the format to %m/%d/%Y. For example see col4 which holds dates mysql SELECT * FROM `table4`; +--+--+--++ | col1 | col2 | col3 | col4 | +--+--+--++ |1 | 11 | 111 | 2008-09-24 | - %Y-%m-%d |2 | 22 | 222 | -00-00 | +--+--+--++ 2 rows in set (0.00 sec) And gridview shows 09/24/08 Why is this? Normally the gridview must get the string 2008-09-24 -- Γεια χαρα σε όλους!!! Regards, Demosthenes Koptsis -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] another IDE cut/n paste behaviour
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/Ubuntu 8.04/Xorg behaviour. Or a problem on my box. Please give more details on when it does not work. Salut Benoit, back again today for that. Finally, for sure, in gambas2 2.16 when I try during debug, having selected something of in the editor, I can't copy it with CTRL+C I have to use the ContextMenu/Copy. CTRL+V works. -- Amicalment Charlie -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] I made a mistake again
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 inconvenience. I hope that there are not too many lost images... Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GAMBAS crash when setting columnview's Sorted property
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, as using gb.qt works fine under 2.16.0 but gb.gtk doesn't. Bugzilla from gam...@users.sourceforge.net wrote: If you want to show a lot of data in columns, I suggest using a GridView for that. Sorted view controls are very slow in GTK+, even if I hack a lot to workaround the problem. I'd like to use the gridview, but it doesn't appear to have integrated sorting capabilities. If I used that then I'd be coding sorting algorithms myself and getting all kinds of headaches. ;) For now I'm going to switch to gb.qt and redo my form's colors since they look all crazy under gb.qt in Ubuntu. Thanks for fixing the bug and have a good weekend. - Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com phone: (770) 853-6271 -- View this message in context: http://www.nabble.com/GAMBAS-crash-when-setting-columnview%27s-Sorted-property-tp25486385p25503074.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user