Public Function ExtractFileExtention(FilePath As String) On Error GoTo Hell Dim i As Integer Dim TPos As String For i = 0 To Len(FilePath) + 1 TPos = Right$(FilePath, i) If InStr(1, TPos, ".") Then ExtractFileExtention = Right$(FilePath, Len(TPos)) Exit Function End If Next Hell: MsgBox "Application Error", vbInformation, "Error" Exit Function End Function
[VB6]Extract Extention from File
Started by kresh7, Sep 27 2009 02:05 PM
1 reply to this topic
#1
Posted 27 September 2009 - 02:05 PM
Ok while ago ive coded this function it extracts the extention of a file so i thought lets post it here to maybe someone could need this Credit if u use it :D Peace out
|
|
|
#2
Posted 29 September 2009 - 09:33 AM
Go to Hell :P
Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!


Sign In
Create Account


Back to top









