home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>Set Statement[Runtime]</title><meta name="filename" content="text/sbasic/common/03103700"/><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{
- }
- span.T1{
- font-weight:bold;}
- </style></head><body>
-
-
- <p class="P1"/>
- <p class="Head1"><a name="set"/><help:link Id="66438" xmlns:help="http://openoffice.org/2000/help">Set Statement[Runtime]</help:link></p>
- <p class="Paragraph">Sets an object reference on a variable or a Property.<a name="ende"/></p>
- <p class="Paragraph"><span class="T1">Syntax</span>:</p>
- <p class="Paragraph">Set ObjectVar = Object <help:key-word value="Set" tag="kw66438_1" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="Paragraph"><span class="T1">Parameter</span>:</p>
- <p class="Paragraph">ObjectVar: a variable or a property, which should receive an object reference.</p>
- <p class="Paragraph">Object: Object, to which the variable or the property should refer.</p>
- <p class="Paragraph"><span class="T1">Example:</span></p>
- <p class="PropText">Sub ExampleSet</p>
- <p class="PropText">Dim oDoc As Object</p>
- <p class="PropText">Set oDoc = ActiveWindow</p>
- <p class="PropText">Print oDoc.Name</p>
- <p class="PropText">End Sub</p>
- <p class="PropText"/>
- </body></html>