Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

ScrollView __collectorGroup
Started by sierramanagement Feb 12 2018 01:47 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sierramanagement

[GLOBAL: userInfoPane.html]
sierramanagement
  • Enthusiast

  • 63 posts
  • Corona SDK

I am trying to access elements of scrollView by using _collectorGroup.

 

I can see the value stored in scrollview at location

 

"myView.__collectorGroup[31].text. == "x"

 

is it possible to change the text value  some how ?

 

the code below does not work as it throws exception, attempt to index field '__collectorGroup' (a nil value)..

 

"myView.__collectorGroup[31].text="test" 

 

 

thx

Roger



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,625 posts
  • Enterprise

When you're accessing a variable in an object in a Corona object and the member starts with an underscore, that's intended to be a private variable and as such it's undocumented and using it is unsupported. Maybe the community might have some advice for you, but are you sure you have the right number of underscores?

 

Rob



[TOPIC: post.html]
#3

sierramanagement

[GLOBAL: userInfoPane.html]
sierramanagement
  • Enthusiast

  • 63 posts
  • Corona SDK

Thanks Rob,

 

Yes, I have the correct number of underscores, It seems it is a pointer to the var . when I change the var in the table 

it changes in the scrollview... I think....




[topic_controls]
[/topic_controls]