hi this is apiece of code on whch iam working. can anyone tell me wht is function chrw doing here
Private Function half_forms(ByVal c As Integer, ByRef isfoctouni
As String) As String
Dim temp As String
temp = ""
Select Case c
Case &H81
temp = temp + ChrW(&H915) + ChrW(&H94D) + ChrW(&H937)
+ ChrW(&H94D) + ChrW(&H200D)
Case &H82
temp = temp + ChrW(&H950)
Case &H83
temp = temp + ChrW(&H93D)
Case &H84
temp = temp + ChrW(&H903)
Case &H85
temp = temp + ChrW(&H964)

AlanRank #669 · 3.6K reputationPosted Sep 5, 2007, 12:40 AM EDT
The ChrW function returns the unicode character with the same number as its Integer argument.
For example:
Dim c As Char = ChrW(65) 'assigns the variable c the character 'A '
This line does the same except the argument this time is expressed as a hexadecimal number:
Dim c As Char = ChrW(&H41)
akshita fauzdar3 reputationPosted Sep 5, 2007, 4:25 AM EDT
AlanRank #669 · 3.6K reputationPosted Sep 5, 2007, 5:13 AM EDT
Hi again:
1. Yes, it can be used for any unicode character between 0 and 65,535. For example ChrW(2) represents the non-printing character which in the single byte ASCII system is called STX (start of text).
2. No, it's not compulsory to use hexadecimal for the argument - it's more usual to use a decimal integer.