Re: [Gambas-user] [Gambas Bug Tracker] Bug #1013: gb.db.odbc new GetRecordCount mechanism seem not work with firebird database

2016-09-25 Thread d4t4full
Christian, Hi. I made the GetRecordCount() function. Can you please be more specific as why it does not work for you? I do not have an FB DB to test, so if you could please be clear as how it fails I'll appreciate it. Thank you, zxMarce. On Sep 25, 2016, 17:42, at 17:42, bugtrac...@gambaswi

Re: [Gambas-user] Set cursor position on a webview editable.

2016-12-07 Thread d4t4full
I was just curious about the use of CTRL-RIGHT instead of CTRL-END. The latter normally takes the cursor to the end of the text, while the former just skips a word at a time. One of the examples in this thread splitted the text at spaces and then skipped one word at a time in a FOR loop instead

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option

2017-03-18 Thread d4t4full
(english below) ODBC en realidad no es en sí un driver, sino un administrador de drivers. Lo que hace en la práctica es ofrecer a programas una interfase lo más unificada posible para que solamente cambiando el driver subyacente se pueda usar ese mismo programa con diversos motores de bases de

Re: [Gambas-user] New component gb.rss to generate and parse RSS documents

2017-04-02 Thread d4t4full
I do not see the need to "force" developers needing timezone handling  functionality to add a reference to gb.util.web; expecting to have timezone capability in a web component is simply not intuitive. Couldn't the timezone be a new property of the Date type/object, defaulting to the System's t

Re: [Gambas-user] New component gb.rss to generate and parse RSS documents

2017-04-02 Thread d4t4full
Got it. Thanks Benoît. On Apr 2, 2017, 20:51, at 20:51, "Benoît Minisini" wrote: >Le 03/04/2017 à 00:48, d4t4f...@gmail.com a écrit : >> I do not see the need to "force" developers needing timezone handling >> functionality to add a reference to gb.util.web; expecting to have >> timezone capabil

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted

2017-05-03 Thread d4t4full
Hehe... you're right. But I also cited IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. Speaking about Easysoft, I myself made a command line ODBC tool to connect with ConnectionStrings and

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted

2017-05-03 Thread d4t4full
Hehe... you're right. But I also cited IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. Speaking about Easysoft, I myself made a command line ODBC tool to connect with ConnectionStrings and

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread d4t4full
&H02 is ASCII for STX, a special char that for some protocols mean "start transmission". Some protocols frame their data payload between chars STX (&H02) and ETX(&H03). These also normally use some checksum mechanism either before or right after ETX. Of course it could also be a misleading UTF8

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-21 Thread d4t4full
Piccoro, All .MoveXXX methods except .MoveNext need a record count from the provider. You know that ODBC does not provide one, but some drivers do, and I also patched the component to try to fetch this count when possible. Now, the driver may NOT be correctly configured in unixODBC, allowing so

Re: [Gambas-user] Split: misleading Wiki

2017-05-22 Thread d4t4full
Matti Your string has 3 substrings when split with SPLIT (STRING, "#"): Index 0: "Hello" Index 1: "" Index 2: "12345" It is documented that separators are single characters, not strings; you can specify a string because any of its individual characters may be used as separator. If you also sp

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread d4t4full
Maybe a previous query like:   SELECT TOP 1 * FROM would help with the FOR EACH loop. Don't really know your case though. Regards, zxMarce On Jun 16, 2017, 16:40, at 16:40, PICCORO McKAY Lenz wrote: >2017-06-16 15:04 GMT-04:00 ML : > >> Does this help? >> >> Dim fld as Field >> For Each

Re: [Gambas-user] vb code

2017-07-14 Thread d4t4full
Actually a type in VBA (old VB6 and MSOffice Basic) is not regarded as an object, it is more akin to a C Struc. All you do to use it is "Dim myVar As UserType". You use New for object classes only, and Type is not a class or object. The Private clause makes the user type definition accessible o

Re: [Gambas-user] Difference DateDiff(...) ?

2017-08-06 Thread d4t4full
Without a machine nearby, I'd risk you're in the right track. The DIM AS LONG creates 64bit vars while DateDiff may return 32bit data (don't have the docs with me). Print will use 64bit to print the vars and 32bit with direct DateDiff (you may confirm by using CLng to affect the DateDiff's in t

Re: [Gambas-user] Difference DateDiff(...) ?

2017-08-06 Thread d4t4full
Toni, I don't think Print is at fault here at all. My guess is that DateDiff may need an "attitude adjustment" in these cases: It may need to either raise an overflow error or return a 64bit Long. Hope this helps, zxMarce. On Aug 6, 2017, 12:00, at 12:00, Tony Morehen wrote: >zxMarce, you a

Re: [Gambas-user] XML - Display structure

2017-08-12 Thread d4t4full
Don't want to sound pedantic or be the wiseguy that states the obvious, but I think this is a perfect example for a recursive call. The way I picture this is a routine that initially receives the XML root node and displays all its attributes and text. Then, it calls itself recursively for each

Re: [Gambas-user] Switching to GitLab

2017-08-13 Thread d4t4full
+1 TIA zxMarce On Aug 13, 2017, 09:57, at 09:57, Gianluigi wrote: >Hi Benoit, > >I apologize for ignorance but I have never used Git. >To update the Trunk, what should I do now? >To subscribe to the new ML? >To report a bug? >Write access is only for participating in the code, or? > >Regards >Gia

Re: [Gambas-user] Switching to GitLab

2017-08-25 Thread d4t4full
Count me in! I'd like also, of course, have Git(Lab) not overwrite any changes I may have made in my contrib with upstream, in case these changes were not yet PUSHed successfully to upstream. Er... Does that sound right? I meant that we need to update our private forks while not "downgrading"

Re: [Gambas-user] Two issues with the bugtracker

2017-09-15 Thread d4t4full
I guess clear cache+refresh is Ctrl-F5. Regards. On Sep 15, 2017, 10:14, at 10:14, "Benoît Minisini via Gambas-user" wrote: >Le 15/09/2017 à 09:46, Moviga Technologies a écrit : >> Look at the screenshots: >> > >The bug number problem should be fixed now. But you have to create the >bug repor

Re: [Gambas-user] "Long" click

2017-09-23 Thread d4t4full
That is precisely the reason I suggested an OBSERVER object. This Observer would get all MouseDown and MouseUp events for the desired controls and act accordingly. My code was, anyway, Form-oriented on purpose to make it simpler and straight to the point, without the observer complication. The