by Programming Innovations (7 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 10th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Retrieve just the extension of a file just by specifying the file name
For iLoop = 0 To Len(SourceFile)
If Left(Right(SourceFile, iLoop), 1) = "." Then
GetFileExtension = Right(SourceFile, iLoop - 1)
Exit Function
End If
Next iLoop
End Function
No comments have been posted about Retrieve just the extension of a file just by specifying the file name. Why not be the first to post a comment about Retrieve just the extension of a file just by specifying the file name.