diff options
author | Andras Timar <atimar@suse.com> | 2012-11-15 11:10:24 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-11-15 20:46:51 +0100 |
commit | ff39701b0e841035089929ab7811c7431ab9b39b (patch) | |
tree | 03f3607f3ad5c5b788f8932a80c6c847bd90b1ae /source/text/sbasic/shared/03101500.xhp | |
parent | 6291844ea9c4c1d6863c62cbd33e841ff21d3e7a (diff) |
format Basic code examples
Diffstat (limited to 'source/text/sbasic/shared/03101500.xhp')
-rw-r--r-- | source/text/sbasic/shared/03101500.xhp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/source/text/sbasic/shared/03101500.xhp b/source/text/sbasic/shared/03101500.xhp index 4b59301441..89399fc3d1 100644 --- a/source/text/sbasic/shared/03101500.xhp +++ b/source/text/sbasic/shared/03101500.xhp @@ -47,7 +47,9 @@ <paragraph role="paragraph" id="par_id3149762" xml-lang="en-US" l10n="U" oldref="2">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> <paragraph role="heading" id="hd_id3148686" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph> -<paragraph role="paragraph" id="par_id3156023" xml-lang="en-US" l10n="U" oldref="4">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> +<bascode>
+<paragraph role="bascode" id="par_id3156023" xml-lang="en-US" oldref="4">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph>
+</bascode> <paragraph role="heading" id="hd_id3156344" xml-lang="en-US" level="2" l10n="U" oldref="5">Parameters:</paragraph> <paragraph role="paragraph" id="par_id3147560" xml-lang="en-US" l10n="U" oldref="6"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> @@ -58,16 +60,18 @@ <paragraph role="paragraph" id="par_id3125863" xml-lang="en-US" l10n="U" oldref="9"> <emph>DefInt:</emph> Integer</paragraph> <paragraph role="heading" id="hd_id3154123" xml-lang="en-US" level="2" l10n="U" oldref="10">Example:</paragraph> -<paragraph role="paragraph" id="par_id3151042" xml-lang="en-US" l10n="U" oldref="12">REM Prefix definitions for variable types</paragraph> -<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US" l10n="U" oldref="13">DefBool b</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US" l10n="U" oldref="14">DefDate t</paragraph> -<paragraph role="paragraph" id="par_id3150440" xml-lang="en-US" l10n="U" oldref="15">DefDbL d</paragraph> -<paragraph role="paragraph" id="par_id3155855" xml-lang="en-US" l10n="U" oldref="16">DefInt i</paragraph> -<paragraph role="paragraph" id="par_id3152885" xml-lang="en-US" l10n="U" oldref="17">DefLng l</paragraph> -<paragraph role="paragraph" id="par_id3148646" xml-lang="en-US" l10n="U" oldref="18">DefObj o</paragraph> -<paragraph role="paragraph" id="par_id3153951" xml-lang="en-US" l10n="U" oldref="19">DefVar v</paragraph> -<paragraph role="paragraph" id="par_id3146924" xml-lang="en-US" l10n="U" oldref="21">Sub ExampleDefInt</paragraph> -<paragraph role="paragraph" id="par_id3153728" xml-lang="en-US" l10n="U" oldref="22">iCount=200 REM iCount is an implicit integer variable</paragraph> -<paragraph role="paragraph" id="par_id3150010" xml-lang="en-US" l10n="U" oldref="23">end sub</paragraph> +<bascode> +<paragraph role="bascode" id="par_id3151042" xml-lang="en-US" l10n="U" oldref="12">' Prefix definitions for variable types</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefInt</paragraph> +<paragraph role="bascode" id="par_id3153728" xml-lang="en-US" l10n="U" oldref="22"> iCount=200 ' iCount is an implicit integer variable</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> +</bascode> </body> </helpdocument> |