| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!--*********************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| ***********************************************************--> |
| |
| <helpdocument version="1.0"> |
| <meta> |
| <topic id="textsbasicshared03020402xml" indexer="include" status="PUBLISH"> |
| <title id="tit" xml-lang="en-US">ChDrive Statement [Runtime]</title> |
| <filename>/text/sbasic/shared/03020402.xhp</filename> |
| </topic> |
| </meta> |
| <body> |
| <section id="chdrive"> |
| <bookmark xml-lang="en-US" branch="index" id="bm_id3145068"> |
| <bookmark_value>ChDrive statement</bookmark_value> |
| </bookmark> |
| <paragraph role="heading" id="hd_id3145068" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03020402.xhp" name="ChDrive Statement [Runtime]">ChDrive Statement [Runtime]</link></paragraph> |
| <paragraph role="paragraph" id="par_id3149656" xml-lang="en-US" l10n="U">Changes the current drive.</paragraph> |
| </section> |
| <embed href="text/sbasic/shared/03020401.xhp#i30692"/> |
| <paragraph role="heading" id="hd_id3154138" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> |
| <paragraph role="code" id="par_id3154685" xml-lang="en-US" l10n="U">ChDrive Text As String</paragraph> |
| <paragraph role="heading" id="hd_id3156423" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> |
| <paragraph role="paragraph" id="par_id3145172" xml-lang="en-US" l10n="U"><emph>Text:</emph> Any string expression that contains the drive letter of the new drive. If you want, you can use <link href="text/sbasic/shared/00000002.xhp" name="URL notation">URL notation</link>.</paragraph> |
| <paragraph role="paragraph" id="par_id3145785" xml-lang="en-US" l10n="U">The drive must be assigned a capital letter. Under Windows, the letter that you assign the drive is restricted by the settings in LASTDRV. If the drive argument is a multiple-character string, only the first letter is relevant. If you attempt to access a non-existent drive, an error occurs that you can respond to with the OnError statement.</paragraph> |
| <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> |
| <embed href="text/sbasic/shared/00000003.xhp#err5"/> |
| <embed href="text/sbasic/shared/00000003.xhp#err68"/> |
| <embed href="text/sbasic/shared/00000003.xhp#err76"/> |
| <paragraph role="heading" id="hd_id3153188" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> |
| <paragraph role="code" id="par_id3151113" xml-lang="en-US" l10n="U">Sub ExampleCHDrive</paragraph> |
| <paragraph role="code" id="par_id3152576" xml-lang="en-US" l10n="U">ChDrive "D" REM Only possible if a drive 'D' exists.</paragraph> |
| <paragraph role="code" id="par_id3156441" xml-lang="en-US" l10n="U">End Sub</paragraph> |
| </body> |
| </helpdocument> |