[Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread alexchernoff
Good day all, In a serial string I receive a 16 bit value split into MSB and LSB in hex, for example 15000 (3A 98) is sent as 2 bytes containing decimal values of 3A and 98. To convert that to decimal, I have to convert each to hex strings, join them, add &H to it and then convert "&H3A98" to de

Re: [Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > In a serial string I receive a 16 bit value split into MSB and LSB in hex, > for example 15000 (3A 98) is sent as 2 bytes containing decimal values of > 3A and 98. > > To convert that to decimal, I have to convert each to hex strings,

Re: [Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread ML
Alex, What you're receiving is two characters with ASCII values 3A (":") and 98 (not printable, ASCII code over 7F). In any case, there's no need to convert anything to hex. If bytes come in LSB first, you can use the *Integer@* function along with the *StrPtr* (or similar, don't remember in Gamba

Re: [Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread alexchernoff
awesome! Lsl() does not have a definition (F2) in Gambas UI it seems though, at least not 3.9.2. also too bad Gambas UI help does not have a Search function (or does it?) thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029p5

[Gambas-user] Class startup?

2017-05-18 Thread alexchernoff
Good day all, is there a way to have a routine execute in a class as soon as a new instance of it is created? I have a Public Sub Main() but it doesn't seem to run. I come to Gambas from Xojo and there classes have a Constructor() sub which runs on init. thanks! -- View this message in cont

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > is there a way to have a routine execute in a class as soon as a new > instance of it is created? I have a Public Sub Main() but it doesn't seem to > run. > > I come to Gambas from Xojo and there classes have a Constructor() sub which

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

2017-05-18 Thread PICCORO McKAY Lenz
2017-05-17 18:31 GMT-04:00 Cristiano Guadagnino : > If your complaint is due to the fact that the only native implementation > for Gambas is the Mysql one, you have to understand that Mysql (usually in > the form of MariaDB) is available on all linux distributions and it is > free. > One other fr

Re: [Gambas-user] Class startup?

2017-05-18 Thread PICCORO McKAY Lenz
2017-05-18 9:13 GMT-04:00 Tobias Boege : > You can also specify parameters to the _new() method like > > ' In MyClass.class: > Public Sub _new(X As Integer) > ' ... > End > a question: can be "Optional" allowed in constructor arguments..? its possible, so its the same as override in C:

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

2017-05-18 Thread PICCORO McKAY Lenz
yes tobias, I already know.- in last years some bugs where discovered by me ... the surprise its that those bugs were inside gambas since some time .. that's probe that the usage of was very few and limited .. (i mean too many mysql ) but now i can not use, the corporation now used odbc for standa

[Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
Hi Benoit (or gb.web experts), I have two questions about argument passing with WebPages (gb.web), when I include one webpage into another with the <> syntax. (1) The first situation is that I have a small widget encapsulated in a WebPage, let's say it is a specially formatted button MyButton.web

Re: [Gambas-user] Passing arguments between WebPages

2017-05-18 Thread PICCORO McKAY Lenz
2017-05-18 11:14 GMT-04:00 Tobias Boege : > Hi Benoit (or gb.web experts), > well, we are all like bruce lee with Jeet Kune Do! still starting so still ther are not xperts yet! that behaviour u described its similar to those used to parse in codeigniter! i have very interest in -

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, PICCORO McKAY Lenz wrote: > 2017-05-18 9:13 GMT-04:00 Tobias Boege : > > > You can also specify parameters to the _new() method like > > > > ' In MyClass.class: > > Public Sub _new(X As Integer) > > ' ... > > End > > > > a question: can be "Optional" allowed in cons

Re: [Gambas-user] Class startup?

2017-05-18 Thread PICCORO McKAY Lenz
2017-05-18 11:23 GMT-04:00 Tobias Boege : > Yes, they can be optional. > > If you use optional constructor arguments you have to be careful with > inheritance, though! Along the inheritance lineage, all constructor > arguments are divided into two camps: mandatory and optional arguments. > When th

Re: [Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, Tobias Boege wrote: > (2) The other question is about receiving arguments. If I'm a child page > and the parent included me by setting the "text" argument (like in (1)), > then I can print the "text" value via the special syntax > > <%!text> > > But I want to use this value

Re: [Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, Tobias Boege wrote: > Hi Benoit (or gb.web experts), > > I have two questions about argument passing with WebPages (gb.web), > when I include one webpage into another with the <> syntax. > > (1) The first situation is that I have a small widget encapsulated in a > WebPage, le

[Gambas-user] ComboBox as a SearchBox?

2017-05-18 Thread Matti
My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is ove

Re: [Gambas-user] Editing still blocked

2017-05-18 Thread Karl Reinl
Am Donnerstag, den 18.05.2017, 00:50 +0200 schrieb Benoît Minisini: > Le 17/05/2017 à 22:30, Fabien Bodard a écrit : > > So the problem come from the drawingarea. > > > > I have changed something related to events in revision #8132, so it must > me that. > > But everything works correctly on my

Re: [Gambas-user] ComboBox as a SearchBox?

2017-05-18 Thread PICCORO McKAY Lenz
this are in a gambas web project or gambas desktop project? i search for something similar .. how do you doing.. my idea was using json.. but on desktop can be a pain! for search, in the input box, made a query with json to a collection with preloaded data from database Lenz McKAY Gerardo (PICC

Re: [Gambas-user] ComboBox as a SearchBox?

2017-05-18 Thread Rolf-Werner Eilert
Am 18.05.2017 20:18, schrieb Matti: > My idea was: entering the beginning of a word in a ComboBox, the list should > display all the possible matches, then either select from the list or narrow > the search by entering more letters. > This works perfect - but when I fill the list with the matches

Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-18 Thread Fabien Bodard
in fact there is a way for you i think. You must take a look at the DataSource code. It use a load on the need system that i think allow to make something about data provider wich not give any info about the number of data rows. 2017-05-17 1:28 GMT+02:00 PICCORO McKAY Lenz : > Ingo, that My ger

Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?

2017-05-18 Thread Fabien Bodard
you can use the map.MapPointToPixelRel ( hMapPoint As MapPoint ) function to get directly the position on the draw area. 2017-05-17 10:02 GMT+02:00 ingo : > Hi Fabien, > thankx for the answer and the very fast implementation. > > I found a workaround in the meantime. Using the draw event of the