Add
Array atan2 Boolean Dictionary Exists Item Items join |
MAX_VALUE
MIN_VALUE NaN NEGATIVE_INFINITY Number POSITIVE_INFINITY reverse sort toString valueOf |
No Workarounds Available:
Areas Affected:
JScript 3.0 - Dictionary Object
Example:
var d;
d = new ActiveXObject("Scripting.Dictionary");
d.Add("a", "Athens");
d.Add("b", "Belgrade");
d.Add("c", "Cairo");
Javascript 1.2 | Using the Array object, you could mimic the general functionality
of the dictionary object.
function add(arrayIn, addElement)
arrayIn = new Array(tempArray.length+1);
|
Javascript 1.1 | See JavaScript 1.2 entry. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0
Example:
function ArgTest()
{
var i, s, numargs = ArgTest.arguments.length;
s = numargs;
if (numargs < 2)
s += " argument was passed to ArgTest. It
was ";
else
s += " arguments were passed to ArgTest. They
were " ;
for (i = 0; i < numargs; i++)
{
s += ArgTest.arguments[i] + "
";
}
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0
Example:
var my_array = new Array();
for (i = 0; i < 10; i++)
{
my_array[i] = i;
}
x = my_array[4];
Javascript 1.2 | Similar Class exists called Array which uses the same initialization
sequence.
name = new Array(3); |
Javascript 1.1 | Similar Class exists called Array which uses the same initialization
sequence.
name = new Array(3); |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Functions
Javascript 1.2 | Supported in JavaScript 1.0 Math Object. |
Javascript 1.1 | Supported in JavaScript 1.0 Math Object. |
Javascript 1.0 | Supported in JavaScript 1.0 Math Object. |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function
function GetALine(filespec)
{
var fso, a, s, ForReading;
ForReading = 1, s = "";
fso = new ActiveXObject("Scripting.FileSystemObject");
a = fso.OpenTextFile(filespec, ForReading, false);
while (!a.AtEndOfLine)
{
s += a.Read(1);
}
a.Close( );
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function
function GetALine(filespec)
{
var fso, f, s, ForReading;
ForReading = 1, s = "";
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile(filespec, ForReading, false);
while (!f.AtEndOfStream)
s += f.ReadLine( );
f.Close( );
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Object
Javascript 1.2 | Boolean Object existed as of JavaScript 1.1. |
Javascript 1.1 | Boolean Object existed as of JavaScript 1.1. |
Javascript 1.0 | mode = new Boolean(true) is the same as:
mode = true Therefore, you can replace a Boolean object anywhere with a variable that would hold the predefined true data value. |
JScript 1.0 | mode = new Boolean(true) is the same as:
mode = true Therefore, you can replace a Boolean object anywhere with a variable that would hold the predefined true data value. |
Areas Affected:
JScript 2.0 Function
Example:
function CallLevel()
{
if (CallLevel.caller == null)
return("CallLevel was called from the top level.");
else
return("CallLevel was called by another function.");
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - TextStream Object
Example:
function GetColumn()
{
var fso, f, m;
var ForReading = 1, ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true);
f.Write("Hello World!");
f.Close();
f = fso.OpenTextFile("c:\\testfile.txt", ForReading);
m = f.ReadLine();
return(f.Column);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - All Objects
Example:
y = new MyFunc();
if (y.constructor == MyFunc)
// do something
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - Dictionary Object
Example:
function CountDemo()
{
var a, d, i, s;
// Create some variables.
d = new ActiveXObject("Scripting.Dictionary");
d.Add ("a", "Athens");
// Add some keys and items
d.Add ("b", "Belgrade");
d.Add ("c", "Cairo");
a = (new VBArray(d.Keys())); // Get the keys.
s = "";
for (i = 0; i < d.Count; i++) //Iterate the dictionary.
{
s += a.getItem(i) + " - " + d(a.getItem(i)) + "<br>";
}
return(s);
// Return the results.
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Functio - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Object
Javascript 1.2 | Using the Array object, you could mimic the general functionality
of the dictionary object. Some of the useful functions could be coded such
as:
y.add ("a", "test"); if (y.Exists("a")) Add and exists are simply: function add(arrayIn, addElement)
arrayIn = new Array(tempArray.length+1);
function exists(arrayIn, element)
|
Javascript 1.1 | See JavaScript 1.2 entry. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - Dictionary Object
Javascript 1.2 | Using the Array object, you could mimic the general functionality
of the dictionary object.
function exists(arrayIn, element)
|
Javascript 1.1 | See JavaScript 1.2 entry. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Object
The following code illustrates how the FileSystemObject is used to return a TextStream object that can be read from or written to:
Example:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testfile.txt", true);
a.WriteLine("This is a test.");
a.Close();
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 2.0 Function - Dictionary Object
Javascript 1.2 | Using the Array object, you could mimic the general functionality
of the dictionary object.
function add(arrayIn, addElement, value)
function exists(arrayIn, element)
function item(arrayIn, keyword, newValue)
|
Javascript 1.1 | See JavaScript 1.2 entry. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Dictionary Object
Javascript 1.2 | If you were to implement the equivalent dictionary object using Array elements, you would always have access to the array that held all of the elements within. |
Javascript 1.1 | See JavaScript 1.2 entry. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Array Function
Javascript 1.2 | As of JavaScript 1.1, the join function has been a method of the Array object. |
Javascript 1.1 | As of JavaScript 1.1, the join function has been a method of the Array object. |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Dictionary Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Dictionary Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Constant
Javascript 1.2 | In the beginning of the document, define constants MAX_VALUE and MIN_VALUE to values given above. |
Javascript 1.1 | See JavaScript 1.2 entry |
Javascript 1.0 | See JavaScript 1.2 entry |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Constant
Javascript 1.2 | In the beginning of the document, define constants MAX_VALUE and MIN_VALUE to values given above. |
Javascript 1.1 | See JavaScript 1.2 entry |
Javascript 1.0 | See JavaScript 1.2 entry |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Constant
Javascript 1.2 | Available as of JavaScript 1.1 |
Javascript 1.1 | Available as of JavaScript 1.1 |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Constant
Javascript 1.2 | Available as of JavaScript 1.1 |
Javascript 1.1 | Available as of JavaScript 1.1 |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Object
Javascript 1.2 | Available as of JavaScript 1.1 |
Javascript 1.1 | Available as of JavaScript 1.1 |
Javascript 1.0 | In JavaScript 1.1, Number objects are created by the Number
constructor, for example
mode = new Number ( 4 ); In JavaScript 1.0, all Numbers had to be created by assignments, for
example,
|
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Constant
Javascript 1.2 | Available as of JavaScript 1.1 |
Javascript 1.1 | Available as of JavaScript 1.1 |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 - Number Object
Example:
function array_max( )
{
var i, max = this[0];
for (i = 1; i < this.length; i++)
{
if (max < this[i])
max = this[i];
}
return max;
}
Array.prototype.max = array_max;
var x = new Array(1, 2, 3, 4, 5, 6);
var y = x.max( );
After this code is executed, y contains the largest value in the array
x, or 6.
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Dictionary Object
Example:
var a, d, i, s;
// Create some variables.
d = new ActiveXObject("Scripting.Dictionary");
d.Add ("a", "Athens"); // Add some
keys and items
d.Add ("b", "Belgrade");
d.Add ("c", "Cairo");
d.Remove("b");
// Remove second pair.
Javascript 1.2 | No Workaround exists. |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Dictionary Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Array Object
Javascript 1.2 | Available as of JavaScript 1.1 in the Array object |
Javascript 1.1 | Available as of JavaScript 1.1 in the Array object |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions
The ScriptEngine function can return any of the following strings:
"JScript" = Indicates that Microsoft JScript is the current scripting
engine.
"VBA" = Indicates that Microsoft Visual Basic® for Applications
is the current scripting engine.
"VBScript" = Indicates that Microsoft Visual Basic Scripting Edition
is the current scripting engine.
Example:
function GetScriptEngineInfo()
{
var s;
s = ""; // Build string with necessary info.
s += ScriptEngine() + " Version ";
s += ScriptEngineMajorVersion() + ".";
s += ScriptEngineMinorVersion() + ".";
s += ScriptEngineBuildVersion();
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions
The ScriptEngine function can return any of the following strings:
"JScript" = Indicates that Microsoft JScript is the current scripting
engine.
"VBA" = Indicates that Microsoft Visual Basic® for Applications
is the current scripting engine.
"VBScript" = Indicates that Microsoft Visual Basic Scripting Edition
is the current scripting engine.
Example:
function GetScriptEngineInfo()
{
var s;
s = ""; // Build string with necessary info.
s += ScriptEngine() + " Version ";
s += ScriptEngineMajorVersion() + ".";
s += ScriptEngineMinorVersion() + ".";
s += ScriptEngineBuildVersion();
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions
The ScriptEngine function can return any of the following strings:
"JScript" = Indicates that Microsoft JScript is the current scripting
engine.
"VBA" = Indicates that Microsoft Visual Basic® for Applications
is the current scripting engine.
"VBScript" = Indicates that Microsoft Visual Basic Scripting Edition
is the current scripting engine.
Example:
function GetScriptEngineInfo()
{
var s;
s = ""; // Build string with necessary info.
s += ScriptEngine() + " Version ";
s += ScriptEngineMajorVersion() + ".";
s += ScriptEngineMinorVersion() + ".";
s += ScriptEngineBuildVersion();
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions
The ScriptEngine function can return any of the following strings:
"JScript" = Indicates that Microsoft JScript is the current scripting
engine.
"VBA" = Indicates that Microsoft Visual Basic® for Applications
is the current scripting engine.
"VBScript" = Indicates that Microsoft Visual Basic Scripting Edition
is the current scripting engine.
Example:
function GetScriptEngineInfo()
{
var s;
s = ""; // Build string with necessary info.
s += ScriptEngine() + " Version ";
s += ScriptEngineMajorVersion() + ".";
s += ScriptEngineMinorVersion() + ".";
s += ScriptEngineBuildVersion();
return(s);
}
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions - Array Object
A negative value if the first argument passed is less than the second
argument.
Zero if the two arguments are equivalent.
A positive value if the first argument is greater than the second argument.
Javascript 1.2 | Available as of JavaScript 1.1 in the Array object |
Javascript 1.1 | Available as of JavaScript 1.1 in the Array object |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Object Function
The toString method is a member of all built-in JScript objects. How it behaves depends on the object type:
"Array Elements" of an Array are converted to strings. The resulting
strings are concatenated, separated by commas.
"Boolean" If the Boolean value is true, returns "true". Otherwise,
returns "false"
"Function" Returns a string returned of the following form, where functionname
is the name of the function whose toString method was called:
function functionname( ) { [native code] }
"Number" Returns the textual representation of the number.
"String" Returns the value of the String object.
"Default Returns" "[object objectname]", where objectname is the name
of the object type.
Javascript 1.2 | function toString(convertObj)
{ var tempString = ""+convertObj+""; return tempString; } |
Javascript 1.1 | See JavaScript 1.2 entry |
Javascript 1.0 | See JavaScript 1.2 entry |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Object Function
"Array" The elements of the array are converted into strings, and the
strings are concatenated together, separated by commas. This behaves the
same as the Array.toString and Array.join methods.
"Boolean" The Boolean value.
"Date" The stored time value in milliseconds since midnight, January
1, 1970 UTC.
"Function" The function itself.
"Number" The numeric value.
"Object" The object itself. This is the default.
"String" The string value.
Javascript 1.2 | Available as of JavaScript 1.1 on all objects |
Javascript 1.1 | Available as of JavaScript 1.1 on all objects |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Functions
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - TextStream Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |