NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on February 24, 2013, 06:55:16 PM

Title: Backslashes to front slash
Post by: Mike Grigsby on February 24, 2013, 06:55:16 PM
I can't for the life of me recall how to submit a path to the object and have it returned with front slashes. I can build my own, but thought I should know for future use. Do you happen to recall? Thank you!

Title: Re: Backslashes to front slash
Post by: Bruce on February 25, 2013, 10:22:19 PM
Mike, I'm not understanding the question mate - can you elaborate a bit?
Title: Re: Backslashes to front slash
Post by: Mike Grigsby on February 26, 2013, 10:06:57 AM
I thought I recalled a function that converted a string, like a path, from backslashes to front slashes, for use in a url.

In my case, I wanted to display a helpfile which is an html.

For example, something like...

p_web.backtofrontslash(l_URLTohtmlhelp,l_PathTohtmlhelp)


Title: Re: Backslashes to front slash
Post by: Bruce on February 26, 2013, 09:56:37 PM
I think you're thinking of the
url = p_web._MakeUrl(url)
method.

This converts \ to /, makes sure there's one only one ? for parameters, and prepends the url with http:// if it starts with www.