How to Chr$(VARIABLE) as Chr$(&H80)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to Chr$(VARIABLE) as Chr$(&H80)

abbat81
This post was updated on .
Hi all,

how to insert my variable in Chr$()?

this doesn't work:

Dim var as String
var = "&H" & "80"
Print #Sport, Chr$(var); '  Chr$(&H80);


Thannks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: How to Chr$(VARIABLE) as Chr$(&H80)

Charlie
Try changing the following line.

var = Val("&H" & "80")

Check out www.gambas.one

Reply | Threaded
Open this post in threaded view
|

Re: How to Chr$(VARIABLE) as Chr$(&H80)

Jussi Lahtinen
var = chr(val("&H" & "80"))


Jussi

On Sat, Dec 31, 2016 at 1:02 PM, Charlie <[hidden email]> wrote:

> Try changing the following line.
> *var = Val("&H" & "80")*
>
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/How-to-Chr-VARIABLE-as-Chr-H80-tp58096p58109.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user