[Pas2js] ExtractFileName function

warleyalex warleyalex at yahoo.com.br
Wed Jul 31 23:07:04 CEST 2019


Windows uses the backslash (\) for the file system delimiter. For everything
else the forward slash is used (/). 

If I define the path using forward slash (/).

fullFileName : String = 'C:/Program
Files/Borland\Delphi7/Projects/Unit1.dcu';

outputs this:

Drive = C:
Dir   = C:/Program Files/Borland\Delphi7/Projects
Path  = C:/Program Files/Borland\Delphi7/Projects/
Name  = Unit1.dcu
Ext   = .dcu

Unit1.dcu
Unit1



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list