Chr Function

གསལ་བཀོད་འབད་ཡོད་པའི་ཡིག་འབྲུ་ཨང་རྟགས་ལུ་ཆ་མཉམ་པའི་ཡིག་འབྲུ་དེ་སླར་ལོགཔ་ཨིན།

Syntax:


      Chr[$](charcode As Integer) As String
    

Return value:

String

Parameters:

charcode: a numeric expression that represents a valid 8-bit ASCII value (0-255) or a 16-bit Unicode value. (To support expressions with a nominally negative argument like Chr(&H8000) in a backwards-compatible way, values in the range −32768 to −1 are internally mapped to the range 32768 to 65535.)

warning

When VBA compatibility mode is enabled (Option VBASupport 1), charcode is a numeric expression that represents a valid 8-bit ASCII value (0-255) only.


སི་ཨེཆ་ཨར་$ ལས་འགན་དེ་དཔར་འཕྲུལ་པ་ཡང་ན་གཞན་ཨའུཊི་པུཊི་འབྱུང་ཁུངས་ལུ་དམིགས་བསལ་ཚད་འཛིན་འབྱུང་རིམ་ཚུ་གཏང་ནི་ལུ་ལག་ལེན་འཐབ། ཁྱོད་ཀྱིས་ཡང་ཡིག་རྒྱུན་གསལ་བརྗོད་ནང་དྲན་ཚིག་རྟགས་ཚུ་བཙུགས་ནི་ལུ་ལག་ལེན་འཐབ་བཏུབ་ཨིན།

Error codes:

༥ ནུས་མེད་བྱ་སྒོའི་ལམ་ལུགས་བོད་བརྡ་

༦ ལུད་སོང་བ་ ༦ ལུད་སོང་བ་

note

An overflow error will occur when VBA compatibility mode is enabled and the expression value is greater than 255.


Example:


        Sub ExampleChr
            ཨར་ཨི་ཨེམ་ དཔེར་བརྗོད་དེ་གིས་དྲན་ཚིན་རྟགས་ཚུ་(ཨོ་ཨེསི་སི་ཨའི་ཨའི་ གནས་གོང་ ༣༤) ཡིག་རྒྱུན་ནང་བཅུགསཔ་ཨིན།
            MsgBox "A " + Chr$(34) + "short" + Chr(34) + " trip."
            ཨར་ཨི་ཨེམ་དཔར་བསྐྲུན་འབད་འབདཝ་ཌའི་ལོག་ནང་: A "short" ཊིཔ་སྦེ་འབྱུངམ་ཨིན།
            MsgBox Chr(charcode := 64) ' "@" sign
        End Sub
    

Please support us!