With...End With: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
Created page with "WITH object <br /> :::[statements] <br /> END WITH '''Description''' WITH allows you to do a series of operations on an object without having to name the object each time. ..."
 
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
WITH object <br />
With object <br />
:::[statements] <br />
:::[statements] <br />
END WITH
End With


'''Description'''
== Description ==


WITH allows you to do a series of operations on an object without having to name the object each time.  
With allows you to do a series of operations on an object without having to name the object each time.  


'''Example'''
== Example ==


<pre>
<pre>
REM WITH sample
Rem With sample
WITH document
With document
   PRINT .URL
   Print .URL
   PRINT .title
   Print .title
   PRINT .doctype
   Print .doctype
END WITH
End With
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 26: Line 26:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[class|CLASS]]
[[class|CLASS]]
[[Category:Language Reference]]

Revision as of 04:21, 17 August 2012

With object

[statements]

End With

Description

With allows you to do a series of operations on an object without having to name the object each time.

Example

Rem With sample
With document
  Print .URL
  Print .title
  Print .doctype
End With

Output

File:///C:Browse.htm
Test
[objectDocumentType]

Related Items

CLASS