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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
picfilename
...as a string of course
Then when you want the filename simply refer to this variable.
Regards,
Hypoviax
ASKER
ok thanks for that!