No subject


Thu Oct 26 19:20:09 CEST 2017


To          : "gambas-user" gambas-user at lists.sourceforge.net
Cc          : =0D
Date      : Mon, 19 Sep 2005 22:14:25 +0200
Subject : Re: [Gambas-user] Convert an Hex To integer (Val Function)

> Thaks Pablo .
> Now my program works .
>
> I'm near to implemts the modbus protocol on Gambas.=0D
> For the moment i can read from a Serial modbus net (RS485).
> Last step is implemt write OP (50% of the work is done)
>
> Thanks to all  :-))
>
> ---------- Initial Header -----------
>
> From      : gambas-user-admin at lists.sourceforge.net
> To          : gambas-user at lists.sourceforge.net
> Cc          :
> Date      : Mon, 19 Sep 2005 08:53:31 -0500
> Subject : Re: [Gambas-user] Convert an Hex To integer (Val Function)
>
>
> > Put an ampersand at the end, like this:
> >
> >    Val("&HC3C2&")
> >
> > it returns 50114.
> >
> > Saludos,
> > Pablo Vera
> > __________________________________________________________1
> >=20
> > ariafrancesco at ...86... wrote:
> > > Why the function :
> > > =0D
> > > Val("&HC3C2") respond with -15422 (a short)
> > > when the correct value is 50114 (an integer) ??
> > >
> > > How can I convert an Hex like C3C2 in an Integer ??
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > SF.Net email is sponsored by:
> > > Tame your development challenges with Apache's Geronimo App Server.
> > > Download it for free - -and be entered to win a 42" plasma tv or your=
 very
> > > own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo=
.php
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:=0D
> > Tame your development challenges with Apache's Geronimo App Server. =0D
> > Download it for free - -and be entered to win a 42" plasma tv or your v=
ery
> > own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.p=
hp
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________=0D
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list