treeview paths returning forward slashes
BlitzMax Forums/MaxGUI Module/treeview paths returning forward slashes
| ||
I've been using the treeview gadget to return paths but i've noticed that paths with sub folders contain forward slashes instead of backward slashes. A path to the c: drive for instance contains a backward slash ( drives returned from Brucey's volumes.mod ) but any paths with a sub folder contain forward slashes. I'm using Windows XP and the paths are valid using either forward or backward slashes. I always thought forward slashes were invalid for paths. Anyone have any thoughts on this ? |
| ||
Hi you could just use something like returned_path=String(GadgetExtra()) ' the path is stored as ExtraGadget() returned_path=returned_path.replace("/","\") I'm quite sure this is done automatically... maybe I'm wrong! |
| ||
Thanks for the reply. Yes the 'replace$' command works a treat and solves my problem I didn't know about that. I wonder if this is a Blitzmax bug then ! |
| ||
There are some corners of Windows OS that are backslash only, dll paths and network paths can be very picky, otherwise it doesn't really matter. BlitzMax uses the RealPath command internally a lot to normalise path usage. |
| ||
OK, thanks for the info. |