Hi, Jesus
the fileName in the original code is not a string, so substring method not working directly on it. That's why I first let MyPersonalMessage=fileName, which works fine except it shows the full path info; then I use the tempString to get this info out and remove the path and extension.
My problem is, if I do this way, the tempString always showing the last image's filename instead of the recent one being showed.
Matty's code is showing some names as dW0VZfrFH4igpqB+aknu+YLVPQc=.dt2, which is not what I want to show. I just wondering why it always showing the last image filename instead of the current one:
Messenger.MyPersonalMessage=fileName;
tempString=Messenger.MyPersonalMessage;
After these two codes, tempString is the name of the last image while my messeger's persnal message shows the correct filename (full path).
Hi, Matty, Danny22 and Jesus,
Thank you all for you help. I have figured out how to do that.
Just a force type conversion, let tempSting=String(fileName), then the script is running as what I am expecting
Thanks!