Previous Document Next Document

Object Model Reference : Classes : A : Application : Methods : Application.CorelScriptTools


Application.CorelScriptTools

Function CorelScriptTools() As CorelScriptTools

Description

Member of Application

The CorelScriptTools method returns a CorelScriptTools object as a generic object type.

VBA example

The following VBA example displays the standard File Open dialog box and asks the user to choose a file. Then the FileAttr function determines whether the file exists at the specified location.

Sub ScriptTools()
 Dim cst As Object
 Dim FilePath As String
 Set cst = CorelScriptTools
 FilePath = cst.GetFileBox()
 If FilePath <> "" Then
  If cst.FileAttr(FilePath) = 0 Then
   MsgBox "The file you selected doesn't exist."
  End If
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.