|
-
Jul 13th, 2000, 06:55 AM
#1
Thread Starter
Addicted Member
Hi all,
How could I get the short name of a picture? (without the directory info)
I tried ImageMenu1.Picture = ImageMenu1Name but it recovered a number. I have the image Dim-ed as an Object, so what do I do? It has to be an Object, I have no alternative.
Thanks. =)
-Git
-
Jul 13th, 2000, 07:02 AM
#2
Fanatic Member
This will return the short name of a file.
Code:
shortName = Right$(strfullname, Len(strfullname) - InStrRev(strfullname, "\"))
Iain, thats with an i by the way!
-
Jul 13th, 2000, 07:08 AM
#3
Thread Starter
Addicted Member
Thanks. But how do I recover the filname? I try but I keep getting a number (it's an image).
-
Jul 13th, 2000, 08:16 AM
#4
Thread Starter
Addicted Member
I mean, I can't recover ANY of the filename, I only get a number..
Please help! =(
-
Jul 13th, 2000, 08:51 AM
#5
What do you mean by getting filename? Do you want to get it from the path? (C:\Windows\MyPic.bmp) or do you want to get it from a PictureBox that already has a Picture loaded?
If you want to get it from the PictureBox, I don't think you can. The pixels have already been drawen and I don't think there is any reference to the original filename in it.
-
Jul 13th, 2000, 08:54 AM
#6
Thread Starter
Addicted Member
Yeah, I meant getting the filename of the pic that's been drawn.
Ahwell, gotta redesign part of the prog then.
Thanks. =)
-Git
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|