From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03120201.xhp | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03120201.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03120201.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03120201.xhp b/helpcontent2/source/text/sbasic/shared/03120201.xhp new file mode 100644 index 000000000..9b60756d9 --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03120201.xhp @@ -0,0 +1,67 @@ + + + + + + + Space and Spc Function + /text/sbasic/shared/03120201.xhp + + + + + +
+ + Space function + Spc function + + +

Space and Spc Functions

+Returns a string that consists of a specified amount of spaces. +
+The Spc function works the same as the Space function. + + +Space (n As Long)
+Spc (n As Long) + + +String + + + n: Numeric expression that defines the number of spaces in the string. The maximum allowed value of n is 2,147,483,648. + + + + + +Sub ExampleSpace +Dim sText As String, sOut As String +Dim iLen As Integer + iLen = 10 + sText = "Las Vegas" + sOut = sText & Space(iLen) & sText & Chr(13) &_ + sText & Space(iLen*2) & sText & Chr(13) &_ + sText & Space(iLen*4) & sText & Chr(13) + MsgBox sOut,0,"Info:" +End Sub + + +
-- cgit v1.2.3