谢谢哦!作者: yzem99 时间: 2007-4-19 10:09
Chr Function
See Also
Asc Function
Requirements
Version 1
Returns the character associated with the specified ANSI character code.
Chr(charcode)
The charcode argument is a number that identifies a character.
Remarks
Numbers from 0 to 31 are the same as standard, nonprintable ASCII codes. For example, Chr(10) returns a linefeed character.
The following example uses the Chr function to return the character associated with the specified character code:
Dim MyChar
MyChar = Chr(65) ' Returns A.
MyChar = Chr(97) ' Returns a.
MyChar = Chr(62) ' Returns >.
MyChar = Chr(37) ' Returns %.