VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

ExtractFileName

D. de Haas  (4 Submissions)   VB function enhancement   Visual Basic 3.0   Advanced   Wed 3rd February 2021

It extracts a filename from a filepath.

Inputs
A string comtaining a valide path & filename

Assumes
Put this function in a module or the declaration section of a form in which this function is needed.

Returns
Returns only the filename

Side Effects
It only works with VB6, this of the function 'StrReverse' which is not in previous versions of VB

Rate ExtractFileName (41(41 Vote))
ExtractFileName.bas

ExtractFileName Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters