Asc Function (BASIC)

αžαŸ’αžšαž‘αž”αŸ‹β€‹αžαž˜αŸ’αž›αŸƒ ASCII (American Standard Code for Information Interchange) αž“αŸƒβ€‹αžαž½αž’αž€αŸ’αžŸαžšβ€‹αž‘αžΈβ€‹αž˜αž½αž™β€‹αž€αŸ’αž“αž»αž„β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšΒ αŸ”

Syntax:


Asc(string) As Long

Return value:

Long

Parameters:

string: Any valid string expression. Only the first character in the string is relevant.

αž”αŸ’αžšαžΎβ€‹αž’αž“αž»αž‚αž˜αž“αŸ Asc αžŠαžΎαž˜αŸ’αž”αžΈβ€‹αž‡αŸ†αž“αž½αžŸβ€‹αž‚αŸ’αžšαžΆαž”αŸ‹αž…αž»αž…β€‹αžŠαŸ„αž™β€‹αžαž˜αŸ’αž›αŸƒΒ αŸ” αž”αžΎβ€‹αž’αž“αž»αž‚αž˜αž“αŸ Asc αž‡αž½αž”β€‹αžαŸ’αžŸαŸ‚αž’αž€αŸ’αžŸαžšβ€‹αž‘αž‘αŸ αž“αŸ„αŸ‡ LibreOffice Basic αž“αžΉαž„β€‹αžšαžΆαž™αž€αžΆαžšαžŽαŸβ€‹αž€αŸ†αž αž»αžŸβ€‹αž–αŸαž›β€‹αžšαžαŸ‹β€‹αž˜αž½αž™Β αŸ” αžŠαŸ„αž™β€‹αž”αž“αŸ’αžαŸ‚αž˜β€‹αž›αžΎβ€‹αžαž½αž’αž€αŸ’αžŸαžš ASCII ៧ αž”αŸŠαžΈαž (αž›αŸαž 0-127) αž’αž“αž»αž‚αž˜αž“αŸ ASCII αž€αŸβ€‹αž’αžΆαž…β€‹αžšαž€αžƒαžΎαž‰β€‹αž›αŸαžβ€‹αž‚αŸ’αžšαžΆαž”αŸ‹αž…αž»αž…β€‹αžŠαŸ‚αž›β€‹αž˜αž·αž“β€‹αž’αžΆαž…β€‹αž”αŸ„αŸ‡αž–αž»αž˜αŸ’αž–β€‹αž”αžΆαž“ αž€αŸ’αž“αž»αž„β€‹αž›αŸαž ASCIIΒ αŸ” αž’αž“αž»αž‚αž˜αž“αŸβ€‹αž“αŸαŸ‡β€‹αž€αŸβ€‹αž’αžΆαž…β€‹αž”αŸ’αžšαžΎβ€‹αžαž½αž’αž€αŸ’αžŸαžšβ€‹αž™αžΌαž“αžΈαž€αžΌαžŠ ៑៦ αž”αŸŠαžΈαžβ€‹αž•αž„β€‹αžŠαŸ‚αžšΒ αŸ”

Error codes:

5 αž€αžΆαžšβ€‹αž αŸ…β€‹αž”αŸ‚αž”αž”αž‘β€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ

Example:


Sub ExampleASC
    Print ASC("A") REM returns 65
    Print ASC(string:="Z") ' returns 90
    Print ASC("Las Vegas") REM αžαŸ’αžšαž‘αž”αŸ‹ 76 αžαž½αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ†αž”αžΌαž„β€‹αž”αŸ‰αž»αžŽαŸ’αžŽαŸ„αŸ‡β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž–αž·αž…αžΆαžšαžŽαžΆ
End Sub

Please support us!