Forum > General
Return All the Data to the user as a Writeln.
(1/1)
captian jaster:
Sup Guys... Been Working on a project and got stumped on this.
--- Code: ---Function ExtractFileThings(const FileName:String):String;
BEGIN
ExtractFileName(FileName);
ExtractFilePath(FileName);
ExtractFileExt(FileName);
ExtractFiledir(FileName);
ExtractFileDrive(FileName);
END;
--- End code ---
Now im not sure how im gonna do this bu i want it to be able to return all of the Extracts As Writelns.. How would i get around doing this...
eny:
Eh?
--- Code: --- ...
writeln(ExtractFileName(FileName));
writeln(ExtractFilePath(FileName));
etc...
--- End code ---
captian jaster:
Incorrect... It says Identifier not found.
And it is part of my FFU project... SO Yeah. i think im gonna use a series of strings in a Record..
Whats your thought?
eny:
--- Quote from: captian jaster on April 23, 2010, 03:20:16 pm ---Incorrect... It says Identifier not found.
--- End quote ---
Not to me; works perfectly!
What identifier is missing?
Did you add sysutils to the uses list?
captian jaster:
HAHA dood. The Point of the code im writing is to get all of that data at once.
Its in the FFU unit.
You can
--- Code: ---Writeln(ExtractFileDir('MyFile'));
--- End code ---
If you use the sysutils.
But im trying to only use the FFU unit here.(which already uses sysutils.)
Ill be back on later to try and fix some stuff.
Navigation
[0] Message Index