Good Morning.
I need some help, as I do to just use ". I need to put variables in a String with quotes. Here's an example:
"http>//Test.com/test/teste1?firstvariable=variablehere&secondvariable=variablehere"
Where there is variablehere, I wanted to replace it with the variables, but it is necessary to contain the quotes
String problem
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: String problem
Code: Select all
firstvariable := "hello"
secondvariable := "world"
variablehere := "helloworld"
var := """http>//Test.com/test/teste1?" . firstvariable . "=" . variablehere . "&" . secondvariable . "=" . variablehere """"
MsgBox, % var
ExitApp
Re: String problem
Expression syntax:
Legacy syntax:
Code: Select all
URL := """http>//Test.com/test/teste1?" firstvariable "=" variablehere "&" secondvariable "=" variablehere """"
Legacy syntax:
Code: Select all
URL = "http>//Test.com/test/teste1?%firstvariable%=%variablehere%&%secondvariable%=%variablehere%"
Last edited by boiler on 14 Jul 2021, 06:09, edited 1 time in total.
Re: String problem
I managed to solve my problem with the string replace. Thank you though.