Image name without extencion in an field?
Posted: Tue Jun 14, 2016 10:27 pm
Hi
need some help
im trying to load an image.and wanted to put the image filename in an field but without extencion name i wanted just the name only
i have this till now an it gifs me back on the field name.jpg i wanted it show just the name only.
any one can help me out with it pls.
need some help
im trying to load an image.and wanted to put the image filename in an field but without extencion name i wanted just the name only
i have this till now an it gifs me back on the field name.jpg i wanted it show just the name only.
Code: Select all
on mouseUp
answer file "Please Choose Your Graphic"
put it into tgraphicchoice
revCopyFile tgraphicchoice,"C:\media\"
set filename of image "homebiglogo" to tgraphicchoice
set filename of image "TSHimage" to tgraphicchoice
set the itemdelimiter to slash
put item -1 of tgraphicchoice into teditedgraphicname
put teditedgraphicname into field homebiglogo
end mouseUp