Re: [Gambas-user] Get Hex from Char using some Code Page

2016-12-29 Thread abbat81
Thank you for program. Help me pleat insert my variable into Chr$(&H &AND_VARIABLE). For now I have: s866_ = "А" Print Hex(String.Code(s866_) - 912) 80 How to send in my Serial: Chr$(&H &AND_VARIABLE) -- View this message in context: http://gambas.8142.n7.nabble.com/Get-Hex-from-Char-

Re: [Gambas-user] Get Hex from Char using some Code Page

2016-12-27 Thread Charlie
Have a look at the attached program. It will work with the first 48 characters of Code page 866 Hex866.tar -- View this message in context: http://gambas.8142.n7.nabble.com/Get-Hex-from-Char-using-some-Code-Page-tp58055p58064.html Sent

[Gambas-user] Get Hex from Char using some Code Page

2016-12-22 Thread abbat81
Hi all, My code is big, so maybe Gambas can convert my char in CP866 to HEX? Here is a part of my code: Else If ch = "А" Then Print #Sport, Chr$(&H80); Else If ch = "а" Then Print #Sport, Chr$(&HA0); Else If ch = "Б" Then Print #Sport, Chr$(&H81); Else If ch = "б" Then Pr