Name of last opened file.
Namespace: Cognex.VisionPro.ImageFileAssembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 87.0.0.0
Syntax
Property Value
Type: StringRemarks
Name of the last opened file. If no file is open, FileName is NULL.
Default Value: NULL
Examples
Imports Cognex.Visionpro.ImageFile
' Get the name of the last opened file and display it
Dim strFileName As String
strFileName = imagefile.FileName
MessageBox.Show("Last file opened was:" + strFileName)using Cognex.Visionpro.ImageFile; // Get the name of the last opened file and display it string strFileName; strFileName = imagefile.FileName; MessageBox.Show("Last file opened was:" + strFileName);
See Also