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

abbat81 abbat.81 at ...787...
Thu Dec 22 10:23:33 CET 2016


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
    Print #Sport, Chr$(&HA1);
  Else If ch = "В" Then
    Print #Sport, Chr$(&H82);
  Else If ch = "в" Then
    Print #Sport, Chr$(&HA2);

And here is Code Page
https://en.wikipedia.org/wiki/Code_page_866

Thanks in advance.
 



--
View this message in context: http://gambas.8142.n7.nabble.com/Get-Hex-from-Char-using-some-Code-Page-tp58055.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list