Adobe 38040334 - Dreamweaver CS3 User Manual page 149

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is a string you can use to store specific data about the item being added such as a
itemData
document line number.
• The
argument is the start of selection offset in the file. Specify the value
iStartSel
an offset.
• The
argument is the end of selection offset in the file. Specify the value
iEndSel
offset.
• The
argument is an array of strings that provide the data for each column (that is, if there are 3 columns,
colNdata
an array of 3 strings).
Returns
A Boolean value:
if the item was added successfully;
true
Example
The following example creates a Results window called
Gollum. The call to the
resWin.addItem()
into the three columns defined for the window.
msg3
var resWin = dw.createResultsWindow("Test Window", ["Frodo", "Sam", "Gollum"]);
resWin.addItem(resWin, "3", "Description", null, null, null, ["msg1", "msg2", "msg3"]);
resWin.getItem()
Availability
Dreamweaver 4.
Description
Retrieves an array of items that include the name of the command that added the item and the same strings that were
passed to the
function.
addItem()
Arguments
itemIndex
• The
argument is the index of the item whose data is to be retrieved.
itemIndex
Returns
An array of strings. The first element in the array is the name of the command that added the item; the remaining
elements are the same strings that were passed to the
resWin.getItemCount()
Availability
Dreamweaver 4.
Description
Retrieves the number of items in the list.
Arguments
None.
otherwise.
false
that has the column headings: Frodo, Sam, and
resWin
function adds a folder icon and then the three strings,
function.
addItem()
DREAMWEAVER CS3
if you are not specifying
null
if you are not specifying an
null
,
msg1
msg2
144
API Reference
, and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents