Normal Topic @PopupMenu and "/" (Read 6538 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
@PopupMenu and "/"
Aug 31st, 2021 at 7:41pm
Print Post Print Post  
Hey folks!

I use @popupmenu with a drop down list to choose SMS messages to send -- and I'd like to add an option to share our company Google Review page.  Problem is, @popupmenu takes the '/' and thinks it's a submenu.

I've tried working around with @chr, no luck.  Any suggestions how I can do this?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @PopupMenu and "/"
Reply #1 - Sep 1st, 2021 at 1:54pm
Print Post Print Post  
Hey Blair,

You can escape the forward slash with a back slash. So vString = @Replace(vString, "/", "\/") and then just pull it out of the picked choice as well doing the reverse.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Re: @PopupMenu and "/"
Reply #2 - Sep 1st, 2021 at 8:38pm
Print Post Print Post  
Hmmm.  That didn't seem to work.  Here's what I did:

vSubject = @Popupmenu(@replace("Your account with our office is now closed, how did we treat you?  Feel free to leave a review for us at https://g.page/kingstondc/review/", "/", "\/")

And then afterwards, before the HTTPost,

vSubject = @replace(vSubject,"\/","/")

On the pop-up in Sesame and subsequent text, it came up as a backslash, not a forward slash, and an invalid URL.... did something get mangled?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @PopupMenu and "/"
Reply #3 - Sep 2nd, 2021 at 12:54pm
Print Post Print Post  
Hey Blair,

I apologize, That's what I get for trying to go off memory sometimes. Here's what you need

Code
Select All
Var vS as String

vS = @PopupMenu(@replace("Your account with our office is now closed, how did we treat you?  Feel free to leave a review for us at https://g.page/kingstondc/review/", "/", "//"), "Pick One")

Writeln(vS) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged