From 61173c1b58efa79c0ba6b08348d2796a249d0186 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Sep 2012 09:51:27 -0500 Subject: move help structure one directory up Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc --- source/text/sbasic/shared/03101000.xhp | 114 +++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 source/text/sbasic/shared/03101000.xhp (limited to 'source/text/sbasic/shared/03101000.xhp') diff --git a/source/text/sbasic/shared/03101000.xhp b/source/text/sbasic/shared/03101000.xhp new file mode 100644 index 0000000000..2526f059e6 --- /dev/null +++ b/source/text/sbasic/shared/03101000.xhp @@ -0,0 +1,114 @@ + + + + + + + + +CStr Function [Runtime] +/text/sbasic/shared/03101000.xhp + + +Sun Microsystems, Inc. +converted from old format - fpe + + + +
+CStr function + +CStr Function [Runtime] +Converts any numeric expression to a string expression. +
+Syntax: +CStr (Expression) +Return value: +String +Parameters: + +Expression: Any valid string or numeric expression that you want to convert. +Expression Types and Conversion Returns + + + +Boolean : + + +String that evaluates to either True or False. + + + + +Date : + + +String that contains the date and time. + + + + +Null : + + +Run-time error. + + + + +Empty : + + +String without any characters. + + + + +Any : + + +Corresponding number as string. + + +
+ +Zeros at the end of a floating-point number are not included in the returned string. + + +Example: +Sub ExampleCSTR +Dim sVar As String +Msgbox CDbl(1234.5678) +Msgbox CInt(1234.5678) +Msgbox CLng(1234.5678) +Msgbox CSng(1234.5678) +sVar = CStr(1234.5678) +MsgBox sVar +end sub + +
-- cgit