home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / Chip_2003-12_cd2.bin / oo / download / f_0019 / sbasic.jar / text / sbasic / common / 03090302.xml < prev    next >
Extensible Markup Language  |  2003-01-16  |  5KB  |  85 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>P┼Ö├¡kaz GoTo [Runtime]</title><meta name="filename" content="text/sbasic/common/03090302"/><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">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:1.499cm;}
  8.         span.Tabelle1B{
  9.                 width:16.498cm;}
  10.         tr.Tabelle11{
  11.                 }
  12.         td.Tabelle1A1{
  13.                 }
  14.         table.Tabelle2{
  15.                 }
  16.         span.Tabelle2A{
  17.                 width:1.499cm;}
  18.         span.Tabelle2B{
  19.                 width:16.498cm;}
  20.         tr.Tabelle21{
  21.                 }
  22.         td.Tabelle2A1{
  23.                 }
  24.         p.P1{
  25.                 }
  26.         p.P2{
  27.                 }
  28.         span.T1{
  29.                 font-weight:bold;}
  30.         span.fr1{
  31.                 }
  32.         </style></head><body>
  33.   
  34.   
  35.   <help:to-be-embedded Eid="goto" xmlns:help="http://openoffice.org/2000/help"><a name="goto"/>
  36.   <p class="Head1"><help:link Id="66534">P┼Ö├¡kaz GoTo [Runtime]</help:link></p>
  37.   <p class="Paragraph">Pokra─ìuje v prov├íd─¢n├¡ programu v procedu┼Öe nebo funkci na ┼Ö├ídku, kter├╜ je ozna─ìen n├ív─¢┼ít├¡m.</p>
  38.   </help:to-be-embedded>
  39.   <p class="Paragraph"><span class="T1">Syntaxe</span>:</p>
  40.   <p class="Paragraph">viz Parametr</p>
  41.   <p class="Paragraph"><span class="T1">Parametr</span>:</p>
  42.   <p class="Paragraph">Sub/Function</p>
  43.   <p class="Paragraph">blok_p┼Ö├¡kaz┼»</p>
  44.   <p class="Paragraph"><help:key-word value="GoTo" tag="kw66534_1" xmlns:help="http://openoffice.org/2000/help"/>GoTo N├ív─¢┼ít├¡ 1</p>
  45.   <p class="P2">N├ív─¢┼ít├¡ 2:</p>
  46.   <p class="Paragraph">blok_p┼Ö├¡kaz┼»</p>
  47.   <p class="Paragraph">Exit Sub</p>
  48.   <p class="P2">N├ív─¢┼ít├¡ 1:</p>
  49.   <p class="Paragraph">blok_p┼Ö├¡kaz┼»</p>
  50.   <p class="Paragraph">GoTo N├ív─¢┼ít├¡ 2</p>
  51.   <p class="Paragraph">End Sub/Function</p>
  52.   <p class="Paragraph">P┼Ö├¡kazem GoTo lze aplikaci <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic sd─¢lit, ┼╛e m├í pokra─ìovat v prov├íd─¢n├¡ programu v jin├⌐m m├¡st─¢ v procedu┼Öe. Toto m├¡sto mus├¡ b├╜t ozna─ìeno n├ív─¢┼ít├¡m. Chcete-li nastavit n├ív─¢┼ít├¡, p┼Öi┼Öa─Åte mu n├ízev a ukon─ìete je dvojte─ìkou (:).</p>
  53.   <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  54.       <p class="TextInTable"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65640" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  55.      </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  56.       <p class="TextInTable">P┼Ö├¡kazem GoTo nelze opustit proceduru nebo funkci.</p>
  57.      </span></th></tr></table>
  58.   <p class="Paragraph"/>
  59.   <table><tr class="Tabelle21"><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  60.       <p class="TextInTable"><draw:image draw:style-name="fr1" draw:name="HIND_2" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="1" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  61.      </span></th><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2B">
  62.       <p class="TextInTable">P┼Ö├¡kaz GoTo je poz┼»statek dialekt┼» jazyka BASIC, kter├╜ je zachov├ín pouze z d┼»vodu zachov├ín├¡ kompatibility. Pokud p┼Ö├¡kaz GoTo pou┼╛├¡v├íte ─ìasto, budou programy ┼ípatn─¢ ─ìiteln├⌐. Z tohoto d┼»vodu se krom─¢ procedur On...GoTo a On Error GoTo doporu─ìuje pou┼╛├¡vat sp├¡┼íe procedury typu Sub.</p>
  63.      </span></th></tr></table>
  64.   <p class="Paragraph"/>
  65.   <p class="P2">P┼Ö├¡klad:</p>
  66.   <p class="PropText">Sub ExampleOnGosub</p>
  67.   <p class="PropText">Dim iVar As Integer</p>
  68.   <p class="PropText">Dim sVar As String</p>
  69.   <p class="PropText">iVar = 2</p>
  70.   <p class="PropText">sVar =""</p>
  71.   <p class="PropText">On iVar GoSub Sub1, Sub2</p>
  72.   <p class="PropText">On iVar GoTo Line1, Line2</p>
  73.   <p class="PropText">Exit Sub</p>
  74.   <p class="PropText">Sub1:</p>
  75.   <p class="PropText">sVar =sVar & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>" From Sub 1 to" : Return</p>
  76.   <p class="PropText">Sub2:</p>
  77.   <p class="PropText">sVar =sVar & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>" From Sub 2 to" : Return</p>
  78.   <p class="PropText">Line1:</p>
  79.   <p class="PropText">sVar =sVar & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>" Label 1"</p>
  80.   <p class="PropText">Line2:</p>
  81.   <p class="PropText">sVar =sVar & <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>" Label 2"</p>
  82.   <p class="PropText">Print sVar</p>
  83.   <p class="PropText">End Sub</p>
  84.  </body></html>
  85.