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 = 32 TO 127
    PRINT Chr$(X);
  NEXT

END


Previous: Choose Next: CInt / CInteger