displaying part of a string

Blitz3D Forums/Blitz3D Beginners Area/displaying part of a string

stayne(Posted 2006) [#1]
I'm loading a model, and displaying the model's file name like so:

C:\program files\props\trees\tree.b3d

If I want to display only:

\props\trees\tree.b3d

how would I do that?


stayne(Posted 2006) [#2]
found the solution. please wipe this tread.

http://www.blitzbasic.com/codearcs/codearcs.php?code=648


b32(Posted 2006) [#3]
There is another code in the archives, that shows how to get the relative path. It needs 2 paths and converts the second one to be relative to the first one.
http://www.blitzbasic.com/codearcs/codearcs.php?code=1187