How to append one variable to another?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
VarHelp

How to append one variable to another?

19 Apr 2018, 18:58

Variable1 = 12345
Variable2 = abcde

I want to append Variable2 onto the end of Variable1, such that Variable1 is now 12345abcde. Is this possible?

Thank you for your help!
poetbox
Posts: 112
Joined: 18 Apr 2018, 20:47

Re: How to append one variable to another?

19 Apr 2018, 19:48

Variable1 = 12345
Variable2 = abcde
Variable = %Variable1%%Variable2%
MsgBox %Variable%
Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to append one variable to another?

20 Apr 2018, 00:47

Hallo,
or shorter:

Code: Select all

Variable1 = 12345
Variable2 = abcde
Variable1 .= Variable2
MsgBox % Variable1
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: How to append one variable to another?

20 Apr 2018, 16:16

Variable1 .= Variable2 or Variable1 := Variable1 Variable2.
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Mannaia666 and 408 guests