Workarounds Available:
No Workarounds Available:
Areas Affected:
JScript 3.0 Object
var ExcelSheet;
ExcelSheet = new ActiveXObject("Excel.Sheet");
This code starts the application creating the object (in this case,
a Microsoft Excel worksheet). Once an object is created, you refer to it
in code using the object variable you defined.
Javascript 1.2 | Absolutely no way of using an ActiveX Object |
Javascript 1.1 | Absolutely no way of using an ActiveX Object |
Javascript 1.0 | Absolutely no means of using an ActiveX Object |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Object - Regular Expression
Javascript 1.2 | Follows the RegExp object structure that is common to JavaScript 1.2 |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Object - Regular Expression
Javascript 1.2 | Follows the regular expression structure that is common to JavaScript 1.2 |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
$_, lastIndex, lastMatch, $&, lastParen, $+, leftContext, multiline, $*, rightContext, source, $1, $2, $3, $4, $5, $6, $7, $8, $9
Areas Affected:
JScript 3.0 Object - Regular Expression Variables
Javascript 1.2 | Same as JScript 3.0 code |
Javascript 1.1 | RegExp Property - No Workaround exists |
Javascript 1.0 | RegExp Property - No Workaround exists |
JScript 2.0 | RegExp Property - No Workaround exists |
JScript 1.0 | RegExp Property - No Workaround exists |
Areas Affected:
JScript 3.0 Function - Global Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | At the beginning of the script, insert the following code:
Infinity = Number.POSITIVE_INFINITY; |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - String Object
Javascript 1.2 | String Object is available within JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Regular Expression Object
Javascript 1.2 | Identical Object within JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - String Object
Example:
function concatDemo()
{
var str1 = "ABCDEFGHIJKLM"
var str2 = "NOPQRSTUVWXYZ";
var s = str1.concat(str2);
// Return concatenated string.
return(s);
}
Javascript 1.2 | String Object is available within the JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - VBArray Object
Javascript 1.2 | See JavaScript 1.1 entry |
Javascript 1.1 | Array object available with JavaScript 1.1 Object.
Within the Array Object, all functionality provided within the VBArray object can be mimicked. Multiple dimensional arrays are possible by nesting array objects within a new Array object. For each element, the length of the array object can be found which would provide the dimension for that set. function dimension(level, arrayIn)
return tempArray.length; } row1 = new Array(2);
rows = new Array(row1, row2); alert(dimension(0, rows)); Returns a value of 2 - the length of the first array element.
|
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - VBArray Object
Javascript 1.2 | See JavaScript 1.1 entry |
Javascript 1.1 | Array object available with JavaScript 1.1 Object.
Within the Array Object, all functionality provided within the VBArray object can be mimicked. Multiple dimensional arrays are possible by nesting array objects within a new Array object. For each element, the length of the array object can be found which would provide the dimension for that set. function ubound(level, arrayIn)
return tempArray.length; } row1 = new Array(2);
rows = new Array(row1, row2); alert(ubound(0, rows)); Returns a value of 2 - the upper bound of the first array element. |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - VBArray Object
Javascript 1.2 | See JavaScript 1.1 entry |
Javascript 1.1 | Array object available with JavaScript 1.1 Object.
Within the Array Object, all functionality provided within the VBArray object can be mimicked. Multiple dimensional arrays are possible by nesting array objects within a new Array object. For each element, the length of the array object can be found which would provide the dimension for that set. function getItem(level, arrayIn, pos)
row1 = new Array(1, 2, 3);
rows = new Array(row1, row2); alert(getItem(0, rows, 0)); Returns a value of 1 - the first element in row1. |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - VBArray Object
Javascript 1.2 | See JavaScript 1.1 entry |
Javascript 1.1 | Since the array object within the JavaScript 1.1 API can only have a lower bound of 0, this functionality can not be worked around. |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - VBArray Object
Javascript 1.2 | Using the Array object and the concat method, one could
easily mimic this functionality.
The concat method blends two arrays together and returns one JScript array. Example: function toArray(arrayIn)
This example could be expanded out to multi-dimensional arrays as well. |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Regular Expression Object
Javascript 1.2 | Follows an identical regular expression object model in the JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Regular Expression Object
Javascript 1.2 | The Regular Expression object has an identical object model in the JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - String Object
Javascript 1.2 | String Object in JavaScript 1.2 API has an identical function to JScript 3.0 API's |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Example:
function DateDemo()
{
var d, s = "Today's UTC date is: ";
d = new Date();
s += (d.getMonth() + 1) + "/";
s += d.getDate() + "/";
s += d.getFullYear();
return(s);
}
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
// dateOBJ is a date object passed as a parameter. //The year is returned from this function. function getFullYear( dateOBJ ) { nYear = date.getYear(); if( 0 <= nYear <= 99 ) { nYear += 1900; } return nYear; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
// d is a date object. Function returns a Natural number. function getMilliseconds( d ) { var date = new Date( d.getYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds() ); return ( d.getTime() - date.getTime() ); } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCDate( date ) { return _convertToUTCDateObject( date ).getDate(); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCDay( date ) { return _convertToUTCDateObject( date ).getDay(); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCFullYear( date ) { return getFullYear( _convertToUTCDateObject( date ) ); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Example:
function UTCTimeDemo()
{
var d, s = "Current Universal Coordinated Time (UTC) is: ";
var c = ":";
d = new Date();
s += d.getUTCHours() + c;
s += d.getUTCMinutes() + c;
s += d.getUTCSeconds() + c;
s += d.getUTCMilliseconds();
return(s);
}
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCHours( date ) { return _convertToUTCDateObject( date ).getHours(); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCMilliseconds( date ) { return getMilliseconds( _convertToUTCDateObject( date ) ) } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Example:
function UTCTimeDemo()
{
var d, s = "Current Universal Coordinated Time (UTC) is: ";
var c = ":";
d = new Date();
s += d.getUTCHours() + c;
s += d.getUTCMinutes() + c;
s += d.getUTCSeconds() + c;
s += d.getUTCMilliseconds();
return(s);
}
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCMinutes( date ) { return _convertToUTCDateObject( date ).getMinutes(); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | // pass in a date object
function getUTCMonth( date ) { return _convertToUTCDateObject( date ).getMonth(); } // Internal function that is
required.
|
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
// pass in a date object function getUTCSeconds( date ) { return _convertToUTCDateObject( date ).getSeconds(); } // Internal function that is required. function _convertToUTCDateObject( date ) { return new Date( date.getTime() + date.getTimezoneOffset() * 60 * 1000 ); |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Global Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 | function _isFinite( n ) {
if( ( n != n ) || // property of NaN n > Number.MAX_VALUE || // POS_INF n < Number.MIN_VALUE ) { // NEG_INF return false; } else { return true; } } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.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 - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
// d is the date object function setFullYear( d, year, month, numDate ) { if( typeof( year ) == "number" ) { var newYear = new Date( year, 0, 1 ); var oldYear = new Date( getFullYear( d ), 0, 1 ); d.setTime( d.getTime() + newYear.getTime() - oldYear.getTime() ); if( typeof( month ) == "number" ) { date.setMonth( month ); } if( typeof( numDate ) == "number" ) { date.setDate( numDate ); } } return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
//d is the date object, nMilliseconds is the number of milliseconds function setMilliseconds( d, nMilliseconds ) { if( nMilliseconds >= 1000 || nMilliseconds < 0) { return null; } var date = new Date( d.getYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds() ); d.setTime( date.getTime() + nMilliseconds ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Example:
function SetUTCDateDemo(newdate)
{
var d, s;
d = new Date();
d.setUTCDate(newdate);
s = "Current setting is ";
s += d.toUTCString();
return(s);
}
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCDate( date, numDate ) { setUTCFullYear( date, null, null, numDate ); return date; } function setUTCFullYear( date, year, month, numDate ) { var nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( year ) == "number" ) { setFullYear( date, year ); } if( typeof( month ) == "number" ) { date.setMonth( month ); } if( typeof( numDate ) == "number" ) { date.setDate( numDate ); } var a = date.getTime() - nTimezoneOffset; date.setTime( a ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCFullYear( date, year, month, numDate ) { var nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( year ) == "number" ) { setFullYear( date, year ); } if( typeof( month ) == "number" ) { date.setMonth( month ); } if( typeof( numDate ) == "number" ) { date.setDate( numDate ); } var a = date.getTime() - nTimezoneOffset; date.setTime( a ); return date;} |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
If the value of an argument is greater than its range or is a negative number, other stored values are modified accordingly. For example, if the stored date is "Jan 5, 1996 00:00:00.00", and setUTCHours(30) is called, the date is changed to "Jan 6, 1996 06:00:00.00."
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCHours( date, hours, mins, secs, msecs ) { nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( hours ) == "number" ) { date.setHours( hours ); } if( typeof( mins ) == "number" ) { date.setMinutes( mins ); } if( typeof( secs ) == "number" ) { date.setSeconds( secs ); } if( typeof( msecs ) == "number" ) { setMilliseconds( date, msecs ); } date.setTime( date.getTime() - nTimezoneOffset ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
If the value of numMilli is greater than 999 or is a negative number, the stored number of seconds (and minutes, hours, and so forth, if necessary) is incremented an appropriate amount.
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCMilliseconds( date, msecs ) { setUTCHours( date, null, null, null, msecs ); return date; } function setUTCHours( date, hours, mins, secs, msecs ) { nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( hours ) == "number" ) { date.setHours( hours ); } if( typeof( mins ) == "number" ) { date.setMinutes( mins ); } if( typeof( secs ) == "number" ) { date.setSeconds( secs ); } if( typeof( msecs ) == "number" ) { setMilliseconds( date, msecs ); } date.setTime( date.getTime() - nTimezoneOffset ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCMinutes( date, mins, secs, msecs ) { setUTCHours( date, null, min, secs, msecs ); return date; } function setUTCHours( date, hours, mins, secs, msecs ) { nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( hours ) == "number" ) { date.setHours( hours ); } if( typeof( mins ) == "number" ) { date.setMinutes( mins ); } if( typeof( secs ) == "number" ) { date.setSeconds( secs ); } if( typeof( msecs ) == "number" ) { setMilliseconds( date, msecs ); } date.setTime( date.getTime() - nTimezoneOffset ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCMonth( date, month, numDate ) { setUTCFullYear( date, null, month, numDate ); return date; } function setUTCFullYear( date, year, month, numDate ) { var nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( year ) == "number" ) { setFullYear( date, year ); } if( typeof( month ) == "number" ) { date.setMonth( month ); } if( typeof( numDate ) == "number" ) { date.setDate( numDate ); } var a = date.getTime() - nTimezoneOffset; date.setTime( a ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
If the value of an argument is greater than its range or is a negative number, other stored values are modified accordingly. For example, if the stored date is "Jan 5, 1996 00:00:00.00" and setSeconds(150) is called, the date is changed to "Jan 5, 1996 00:02:30.00."
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function setUTCSeconds( date, secs, msecs ) { setUTCHours( date, null, null, secs, msecs ); return date; } function setUTCHours( date, hours, mins, secs, msecs ) { nTimezoneOffset = date.getTimezoneOffset() * 60 * 1000; date.setTime( date.getTime() + nTimezoneOffset ); if( typeof( hours ) == "number" ) { date.setHours( hours ); } if( typeof( mins ) == "number" ) { date.setMinutes( mins ); } if( typeof( secs ) == "number" ) { date.setSeconds( secs ); } if( typeof( msecs ) == "number" ) { setMilliseconds( date, msecs ); } date.setTime( date.getTime() - nTimezoneOffset ); return date; } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - Date Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Drive, Enumerator, File, Folder, Global, Object, VBArray, Attributes, AvailableSpace, DateCreated, DateLastAccessed, DateLastModified, Drive, DriveLetter, Drives, DriveType, Files, FileSystem, FreeSpace, global, ignoreCase, index, input, IsReady, IsRootFolder, Name, ParentFolder, Path, RootFolder, SerialNumber, ShareName, ShortName, ShortPath, Size, SubFolders, TotalSize, Type, VolumeName, Add, atEnd, BuildPath, Copy, CopyFile, CopyFolder, CreateFolder, Delete, DeleteFile, DeleteFolder, DriveExists, FileExists, FolderExists, GetAbsolutePathName, GetBaseName, GetDrive, GetDriveName, GetExtensionName, GetFile, GetFileName, GetFolder, GetParentFolderName, GetSpecialFolder, GetTempName, Move, MoveFile, moveFirst, MoveFolder, moveNext, OpenAsTextStream
Areas Affected:
Drive Object, Drives Object, Enumerator Object, File Object, Files
Object, FileSystemObject Object, Folder Object, Folders Object, TextStream
Object
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - String Object
Javascript 1.2 | Slice is part of the String object and has identical functionality as that in JScript 3.0 |
Javascript 1.1 | function myStringSlice( str1, begin, end ) {
// check number of arguments
passed into the function
// deal with negative and
large values of 'begin' and 'end'
// assert data passed in
are valid
str2 = "";
|
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - String Object
Javascript 1.2 | String Object has an identical object model in the JavaScript 1.2 API |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - General Object
Example:
var CADObject;
CADObject = GetObject("C:\\CAD\\SCHEMA.CAD");
When this code is executed, the application associated with the specified pathname is started, and the object in the specified file is activated. If pathname is a zero-length string (""), GetObject returns a new object instance of the specified type. If the pathname argument is omitted, GetObject returns a currently active object of the specified type. If no object of the specified type exists, an error occurs.
Some applications allow you to activate part of a file. Add an exclamation point (!) to the end of the file name and follow it with a string that identifies the part of the file you want to activate. For information on how to create this string, see the documentation for the application that created the object.
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - General Function
/*@cc_on*/
...
(remainder of script)
Alternatively, an @if or @set statement outside of a comment also activates conditional compilation.
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - General Function
Syntax
@if (condition1)
text1
[@elif (condition2)
text2]
[@else
text3]
@end
When you write an @if statement, you don't have to place each clause on a separate line. You can use multiple @elif clauses, however, all @elif clauses must come before an @else clause. You commonly use the @if statement to determine which text among several options should be used for text output.
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function - General Function
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function
Javascript 1.2 | while (expr) { stmts; } |
Javascript 1.1 | while (expr) { stmts; } |
Javascript 1.0 | while (expr) { stmts; } |
JScript 2.0 | while (expr) { stmts; } |
JScript 1.0 | while (expr) { stmts; } |
Areas Affected:
JScript 3.0 Function
Javascript 1.2 | Switch Part of the JavaScript 1.2 API |
Javascript 1.1 | Can format if...else statements to setup the ordered conditions. |
Javascript 1.0 | Can format if...else statements to setup the ordered conditions. |
JScript 2.0 | Can format if...else statements to setup the ordered conditions. |
JScript 1.0 | Can format if...else statements to setup the ordered conditions. |
Areas Affected:
JScript 3.0 Function
Javascript 1.2 | See JavaScript 1.0 entry |
Javascript 1.1 | See JavaScript 1.0 entry |
Javascript 1.0 |
function areIdentical( obj1, obj2 ) { return ( ( obj1 == obj2 ) && ( typeof( obj1 ) == typeof( obj2 ) ) ); } |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |
Areas Affected:
JScript 3.0 Function
Javascript 1.2 | No Workaround exists |
Javascript 1.1 | No Workaround exists |
Javascript 1.0 | No Workaround exists |
JScript 2.0 | No Workaround exists |
JScript 1.0 | No Workaround exists |