5

Here's a piece of code that works in v1:

Var1 := "Example"
%Var1%Variable := "Concatenated Variable"
MsgBox % ExampleVariable

This syntax however seems to be removed from v2. Is there any way I can do this in v2?

CrenshawDK
  • 317
  • 1
  • 10
  • You resort to that when your language doesn't have proper hashmaps ("associative arrays"), which was the case in early versions of AutoHotkey, and for backward-compatibility reasons the feature remained all through the 1.x releases. AHK 2 already has associative arrays and so has done away with this tomfoolery. – kindall Feb 07 '23 at 14:41
  • What's the variable's type? (string, integer, etc) – Ben the Coder Jun 09 '23 at 13:49

0 Answers0