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,

[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 to it and then convert "" to decimal.

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

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:

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,

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

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

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 >

[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

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

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
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

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

[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

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

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

[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