MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual page 235

For windows 95/98/nt4/2000
Table of Contents

Advertisement

' is this document modified?
if app.DocumentCache(idx).Modified then sTable = sTable + "Yes"
sTable = sTable + "</td><td>"
' is this document read-only?
if app.DocumentCache(idx).ReadOnly then sTable = sTable + "Yes"
' close row
sTable = sTable + "</td></tr>" + newline
next
sTable = sTable + newline + "</table>"
' add a new document (False = don't create from default template -
blank)
app.NewDocument(False)
' insert the table (note that the ActiveDocument will be the new
document
' created above)
app.ActiveDocument.InsertText sTable, False
' switch to browse mode
app.CurrentView = 2
' wait for user to re-enter edit mode
while app.CurrentView <> 1
' Wait is a home-grown routine to make up for the loss of
' DoEvents in VBScript. it will pause for a given number of
' milliseconds without locking the interface
app.Wait(100)
wend
' return to the original document
app.DocumentIndex = nCurrentIdx
MsgBox "Script Completed."
' free the references
set app = nothing
End Sub
' function example
function GetDisplayName(fname)
if fname = "" then
GetDisplayName = "(untitled)"
else
GetDisplayName = fname
end if
end function
</pre>
</body>
</html>
243

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents