From 940b4d1848e8c70ab7642901a68594e8016caffc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:51:28 +0200 Subject: Adding upstream version 1:7.0.4. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03120101.xhp | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03120101.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03120101.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03120101.xhp b/helpcontent2/source/text/sbasic/shared/03120101.xhp new file mode 100644 index 000000000..d5e7a7eaf --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03120101.xhp @@ -0,0 +1,69 @@ + + + + + + + Asc Function + /text/sbasic/shared/03120101.xhp + + + + + + +
+ + Asc function + + + +Asc Function +Returns the ASCII (American Standard Code for Information Interchange) value of the first character in a string expression. +
+ +Syntax: + +Asc (Text As String) + + +Return value: +Integer + +Parameters: + Text: Any valid string expression. Only the first character in the string is relevant. +Use the Asc function to replace keys with values. If the Asc function encounters a blank string, $[officename] Basic reports a run-time error. In addition to 7 bit ASCII characters (Codes 0-127), the ASCII function can also detect non-printable key codes in ASCII code. This function can also handle 16 bit unicode characters. + + + +Example: + +Sub ExampleASC + Print ASC("A") ' returns 65 + Print ASC("Z") ' returns 90 + Print ASC("Las Vegas") ' returns 76, since only the first character is taken into account +End Sub + + +
+CHR +
+ + +
\ No newline at end of file -- cgit v1.2.3