VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Retrieve just the extension of a file just by specifying the file name

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

Rate 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

Download this snippet    Add to My Saved Code

Retrieve just the extension of a file just by specifying the file name Comments

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.

Post your comment

Subject:
Message:
0/1000 characters