Jump to content

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

get the value of a pointer



  • 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
How can I get the value of x through the pointer y? The msgbox is returning the memory address instead.
x := 3
y := &x
msgbox % y


RHCP
  • Members
  • 1228 posts
  • Last active: Apr 08 2017 06:17 PM
  • Joined: 29 May 2006
✓  Best Answer
x := 33
y := &x ; Returns pointer to the the string buffer.
msgbox % strget(y)


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

thanks!