Tuesday, August 10, 2010

Visual Basic String Function : Chr

Purpose : The Chr function returns the character that corresponds to the supplied code

Syntex :
Chr(intANSICode)
ChrB(intANSICode)
ChrW(intANSICode)

intANSICode : integer for which you want to return the corresponding character.

Dim strDoubleQuote as string
strDoubleQuote = Chr(34)

This example places a double quote ( " ) in the variable strDoubleQuote.

No comments:

Post a Comment