home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 December
/
Chip_2003-12_cd2.bin
/
oo
/
download
/
f_0019
/
sbasic.jar
/
text
/
sbasic
/
common
/
03103000.xml
< prev
next >
Wrap
Extensible Markup Language
|
2003-01-16
|
2KB
|
38 lines
<?xml version="1.0" encoding="utf-8"?>
<html><head><title>Funkce UBound [Runtime]</title><meta name="filename" content="text/sbasic/common/03103000"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
p.P1{
}
p.P2{
}
span.T1{
font-weight:bold;}
</style></head><body>
<help:to-be-embedded Eid="ubound" xmlns:help="http://openoffice.org/2000/help">
<p class="Head1"><help:link Id="66401">Funkce UBound [Runtime]</help:link></p>
<p class="Paragraph">Vrátí horní mez pole.</p>
</help:to-be-embedded>
<p class="Paragraph"><span class="T1">Syntaxe</span>:</p>
<p class="Paragraph">UBound (Název pole [, Rozměr]) <help:key-word value="UBound" tag="kw66401_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph"><span class="T1">Vrácená hodnota</span>:</p>
<p class="Paragraph">Typu Integer</p>
<p class="Paragraph"><span class="T1">Parametr</span>:</p>
<p class="Paragraph">Název pole: Název pole, pro které se má vrátit horní mez (Ubound) nebo dolní mez (LBound).</p>
<p class="Paragraph">[Rozměr]: Celé číslo, jenž určuje, pro který rozměr se má vrátit horní mez (Ubound) nebo dolní mez (LBound). Pokud není zadána žádná hodnota, použije funkce první rozměr.</p>
<p class="P2">Příklad:</p>
<p class="PropText">Sub ExampleUboundLbound</p>
<p class="PropText">Dim sVar(10 to 20) As String</p>
<p class="PropText">print LBound(sVar())</p>
<p class="PropText">print UBound(sVar())</p>
<p class="PropText">end Sub</p>
<p class="PropText">Sub ExampleUboundLbound2</p>
<p class="PropText">Dim sVar(10 to 20,5 To 70) As String</p>
<p class="PropText">Print LBound(sVar()) REM Returns 10</p>
<p class="PropText">Print UBound(sVar()) REM Returns 20</p>
<p class="PropText">Print LBound(sVar(),2) REM Returns 5</p>
<p class="PropText">Print UBound(sVar(),2) REM Returns 70</p>
<p class="PropText">end Sub</p>
</body></html>