Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to set a pointer to a object's property?


  • Please log in to reply
2 replies to this topic
Azevedo
  • Members
  • 179 posts
  • Last active: Nov 04 2015 04:37 PM
  • Joined: 07 Mar 2012
Hi. How do I set a pointer to a object's property?
myobject := {p1: "abcd", p2: "def"}
mypointer := &myobject.p2
msgbox % strget(mypointer)
it doesn't work :(

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

Use myobject.GetAddress("p2")



Azevedo
  • Members
  • 179 posts
  • Last active: Nov 04 2015 04:37 PM
  • Joined: 07 Mar 2012

thanks!