Chr$

Character = Chr$ ( Code )

Returns the character whose ASCII code is Code.

Be careful! Gambas uses the UTF-8 charset internally, so character code greater than 128 have not the meaning they have with a charset like ISO8859-1.

Example :

PRINT Chr$(65)
=> A

PUBLIC SUB Button1_Click()

  DIM x AS Integer
  
  FOR x = 30 TO 127
    PRINT Chr$(x);
  NEXT

END

Previous: Choose Next: CInt / CInteger


Referenced by :