FileExists

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

Declaration

function FileExists(const FileName: string): Boolean;

Description

The FileExists function returns True if the file specified by FileName exists. If the file does not exist, FileExists returns False.

Example

Function OpenProject(ProjectName : String) : Boolean;

Begin

    Result := True;

    If Not FileExists(ProjectName) Then Result := False;

 

    ResetParameters;

    AddStringParameter('ObjectKind','Project');

    AddStringParameter('FileName', ProjectName);

    RunProcess('WorkspaceManager:OpenObject');

End;

See also

File IO Routines

Your Ad Here