NetTalk Central

Author Topic: Backslashes to front slash  (Read 3423 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Backslashes to front slash
« 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!

Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Backslashes to front slash
« Reply #1 on: February 25, 2013, 10:22:19 PM »
Mike, I'm not understanding the question mate - can you elaborate a bit?

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Backslashes to front slash
« Reply #2 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)


Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Backslashes to front slash
« Reply #3 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.