Funzione Chr
Restituisce il carattere corrispondente al codice specificato.
Chr(Espressione As Integer)
String
Expression: a numeric expression that represents a valid 8-bit ASCII value (0-255) or a 16-bit Unicode value.
When VBA compatibility mode is enabled (OPTION VBASUPPORT 1), Expression is a numeric expression that represents a valid 8-bit ASCII value (0-255) only.
Potete usare la funzione Chr$ per inviare speciali sequenze di controllo a una stampante o a un altro dispositivo di output. Potete anche usarla per inserire le virgolette in una stringa.
6 Overflow, when VBA compatibility mode is enabled and expression is greater than 255.
Sub ExampleChr
' Questo esempio inserisce le virgolette (valore ASCII 34) in una stringa.
MsgBox "Una "+ Chr$(34)+"breve" + Chr$(34)+" gita."
' Il risultato appare nella finestra di dialogo nella forma: Una "breve" gita.
End Sub