Classic ASP Framework
org.classicasp.primitive.UndefinedEx

A Undefined object is a data type that is empty.

To create a UndefinedEx object, you can use the constructor or the global function, or assign a literal value.

Example

	
  Response.Write UndefinedEx("").toJSON()
  

Output

null

Summary

Returns a Bencoded string representation of the object.
Returns a json encoded string representation of the object.
Returns a string representation of the object.
Returns an XML encoded string representation of the object.
Writes a json encoded string representation of the object.
Writes an XML encoded string representation of the object.

toBencode

Public Function toBencode()
Returns a Bencoded string representation of the object.

Returns

String

Example

		
	  Response.Write UndefinedEx("").toBencode()
	  

Output

0:

toJSON

Public Function toJSON()
Returns a json encoded string representation of the object.

Returns

String

Example

		
	  Response.Write UndefinedEx("").toJSON()
	  

Output

null

toString

Public Function toString()
Returns a string representation of the object.

Returns

StringEx

toXML

Public Function toXML()
Returns an XML encoded string representation of the object.

Returns

String

Example

		
	  Response.Write UndefinedEx("").toXML()
	  

Output

<data type="Null"/>

writeJSON

Public Sub writeJSON()
Writes a json encoded string representation of the object.

Returns

N/A

Example

		
	  Call UndefinedEx("").writeJSON()
	  

Output

null

writeXML

Public Sub writeXML()
Writes an XML encoded string representation of the object.

Returns

N/A

Example

		
	  Call UndefinedEx("").writeXML()
	  

Output

<data type="Null"/>

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .

Created with TwinText