From ff39701b0e841035089929ab7811c7431ab9b39b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Thu, 15 Nov 2012 11:10:24 +0100 Subject: format Basic code examples --- source/text/sbasic/shared/03103100.xhp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'source/text/sbasic/shared/03103100.xhp') diff --git a/source/text/sbasic/shared/03103100.xhp b/source/text/sbasic/shared/03103100.xhp index 38c8b3bf95..31905fa2a4 100644 --- a/source/text/sbasic/shared/03103100.xhp +++ b/source/text/sbasic/shared/03103100.xhp @@ -49,16 +49,20 @@ Assigns a value to a variable. Syntax: -[Let] VarName=Expression + +[Let] VarName=Expression + Parameters: VarName: Variable that you want to assign a value to. Value and variable type must be compatible. As in most BASIC dialects, the keyword Let is optional. Example: -Sub ExampleLen -Dim sText as String -Let sText = "Las Vegas" -msgbox Len(sText) REM returns 9 -End Sub + +Sub ExampleLet +Dim sText As String + Let sText = "Las Vegas" + MsgBox Len(sText) ' returns 9 +End Sub + -- cgit