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
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,
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
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
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
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
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
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:
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
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
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
-
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
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
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
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
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
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
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
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
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
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
21 matches
Mail list logo