Chr Function

විශේෂණය කල අනුලකුණු කේතයට අනුරූප අනුලකුණ ලබා දෙයි.

Syntax:

Chr(ප්‍රකාශනය Integer ලෙස)

Return value:

String

Parameters:

Expression: a numeric expression that represents a valid 8-bit ASCII value (0-255) or a 16-bit Unicode value.

warning

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.


මුද්‍රණ යන්ත්‍රයකට හෝ වෙනත් ප්‍රතිදාන මූලයකට විශේෂ පාලන අනුක්‍රමණයක් යැවීමට Chr$ භාවිතා කරන්න. ඔබට එය අනු ලකුණු වැල් ප්‍රකාශනයකට උද්ධරණ ඇතුල් කිරීමටද භාවිතා කල හැක.

Error codes:

5 Invalid procedure call

6 Overflow, when VBA compatibility mode is enabled and expression is greater than 255.

Example:


        Sub ExampleChr
            REM මෙම උදාහරණය අනු ලකුණු වැලක උද්ධරණ ලකුණු ඇතුල් කරයි (ASCII අගය 34).
            MsgBox "A "+ Chr$(34)+"කෙටි" + Chr$(34)+" විනෝද චාරිකාව."
            REM මුද්‍රණ පිටපත සංවාදයක මෙලෙස පෙනෙයි: A "කෙටි" විනෝද චාරිකාවක්.
        End Sub
    

ASC

Please support us!