How to join a variable with a string? - Forum

Forum Navigation
You need to log in to create posts and topics.

How to join a variable with a string?

Hi guys, Into my first week of using Visual Neo Web and loving it...

Been stumped by combining (concatenating) a Variable with a string.

I want to navigate to Google in an iframe and submit a query, for example: https://www.google.com/search?q=%5Bquery%5D

I have been searching the help file, the forum, but still am not sure how to do it.

Please  help. :)

@rob-maggs

re-edited due to typo in original response !!!

Been stumped by combining (concatenating) a Variable with a string

SetVar [First Name] "Rob"
SetVar [Fullname] "[FirstName] Maggs"

I want to navigate to Google in an iframe and submit a query, for example: https://www.google.com/search?q=%5Bquery%5D

Assuming your search value is stored in variable [query] ...

SetVar [url] "https://www.google.com/search?q=[query]"

... and verify it with ...

AlertBox "url" "[url]" ""

For more information about strings, see https://webhelp.visualneo.com/UsingVariables.html

luishp and Rob Maggs have reacted to this post.
luishpRob Maggs

Thank you, I see what I was doing wrong now, much appreciated :)