web 2.0

ASP/VBScript Nothing()

ASP/VBScript Nothing() Declare variables type Nothing.

ShotDev Focus:
- Declare variables type Nothing.

Example

asp_nothing.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objFileSys
Set objFileSys = CreateObject("Scripting.FileSystemObject")
Response.write objFileSys.GetDrive("C")
Response.write objFileSys.GetDrive("D")
Set objFileSys = Nothing
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_nothing.asp

Screenshot

ASP/VBScript Nothing()

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.