GetFileName

Public Function GetFileName(ByVal FullFilePathAndName As String) As String

Returns the file name of the specified full path.

Public Function ImportFile(pContext, pFileName)
   If FileExists(pFileName) Then
       pContext.DataSet("FileData").SetBlob(ReadFile(pFileName, True), GetFileName(pFileName))
   End If

See also: