At 10:04 -0500 17/01/02, Brian Romanko wrote: >Is there a simple way to get the fileName of a member without the path? >I know I can use string parsing to get the last bit of text after the >path delimiter, but that's more effort than it should be IMO. >Especially because some of my linked members were set using "/" and not >the platform-specific path delimiter, so I end up with .fileNames like >"C:\Temp\images/test.jpg".
When you use forward slashes are you then using relative paths starting with "@"? Apart from http paths I think, forward slashes are only allowed with "@". > That means just parsing pased on the >platform path delimiter isn't the only check I'll have to do. Why in >the world the path ends up like this is beyond me. I would expect that >setting a fileName property to a path with forward-slashes instead of >backslashes would just convert them to the platform delimiter >internally...but apparently it doesn't. It is my experience, that setting the fileName with a relative path, and then 'getting' the fileName from the member, returns the absolute path with platform-specific delimiters. The only exception I know of was with D6.5's weird QT3 implementation. Are you sure of your observations and operations? >My head really is not working today, so a ray of light would be great. Sorry, I need all the light myself. Jakob [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
