Link to home
Start Free TrialLog in
Avatar of corsita
corsita

asked on

read filename from TPicture

hi...

i can't find the way to extract the filename of the associated file of a TPicture...

i assign the file with something like:

img := TPicture.Create;
img.LoadFromFile('the_file');

but i need to extract that filename... how do i do that?

thank u for your answers.
ASKER CERTIFIED SOLUTION
Avatar of andrewjb
andrewjb
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of corsita
corsita

ASKER

really? ... that's weird...

ok thanks for that!
How about when you load the file you save the file path to a variable named something like:

            picfilename

...as a string of course

Then when you want the filename simply refer to this variable.

Regards,

Hypoviax