NetTalk Central

Author Topic: Page variable with filename & slashes  (Read 3443 times)

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Page variable with filename & slashes
« on: March 15, 2010, 02:52:29 AM »
Using NT 4.35 in Clarion 6.3, ABC templates.

On a NetWebForm, I am trying to set a value like "PageView?CurrentFolder=Folder1\Folder2" but when I retrieve the CurrentFolder variable, the back slash has been removed. I have tried using "p_web.Translate()" but that did not seem to help.

What I'm attempting to do is to pass to the page a current relative file folder but that may contain sub-folder references as shown above.

Any suggestions on how to accomplish this?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Page variable with filename & slashes
« Reply #1 on: March 15, 2010, 11:14:37 PM »
you probably want to encode the variable.
ie something like;

p_web.escape(foldername)

Cheers
Bruce

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Page variable with filename & slashes
« Reply #2 on: March 17, 2010, 11:59:48 PM »
Thanks, I will give that a try.