how to access public variable of coMponent

A forum where Flowcode v6 user created components can be shared, discussed and reviewed.

Moderator: Benj

Camille
Posts: 17
Joined: Mon Mar 20, 2017 9:39 pm
Has thanked: 5 times
Been thanked: 3 times
Contact:

how to access public variable of coMponent

Postby Camille » Fri Mar 24, 2017 11:07 pm

hello,
How to access public variable of coMponent?
I try :"MyCoMponent:MyVar" doesn't run
Regards

User avatar
Benj
Matrix Staff
Posts: 14130
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4325 times
Been thanked: 4070 times
Contact:

Re: how to access public variable of coMponent

Postby Benj » Tue Mar 28, 2017 3:02 pm

Hello,

Something like this should work. e.g. double colon.

Code: Select all

MyCoMponent::MyVar = 1
These users thanked the author Benj for the post:
Camille (Fri Mar 31, 2017 6:00 pm)
Rating: 5.56%
 

Camille
Posts: 17
Joined: Mon Mar 20, 2017 9:39 pm
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: how to access public variable of coMponent

Postby Camille » Fri Mar 31, 2017 5:59 pm

Hello,
run perfectly! solved!
regards
These users thanked the author Camille for the post:
Benj (Mon Apr 03, 2017 11:19 am)
Rating: 5.56%