home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #3 / K-CD-3-2002.ISO / OpenOffice / f_0046 / sbasic.jar / text / sbasic / common / 03103400.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-09-07  |  1.4 KB  |  25 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Public Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03103400"/><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.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <help:to-be-embedded Eid="public" xmlns:help="http://openoffice.org/2000/help">
  12.   <p class="Head1"><help:link Id="66603">Public Statement [Runtime]</help:link></p>
  13.   <p class="Paragraph">Dimensions a variable or an array at module level (not within a Sub or Function), so that the variable and the array are valid in all libraries and modules.</p>
  14.   </help:to-be-embedded>
  15.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  16.   <p class="Paragraph">Public VarName[(start To end)] [As VarType][, VarName2[(start To end)] [As VarType][,...]] <help:key-word value="Public" tag="kw66603_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  17.   <p class="Paragraph"><span class="T1">Example:</span></p>
  18.   <p class="PropText">Public iPublicVar As Integer</p>
  19.   <p class="PropText"/>
  20.   <p class="PropText">Sub ExamplePublic</p>
  21.   <p class="PropText">iPublicVar = iPublicVar + 1</p>
  22.   <p class="PropText">MsgBox iPublicVar</p>
  23.   <p class="PropText">End sub</p>
  24.   <p class="PropText"/>
  25.  </body></html>