how to access public variable of coMponent

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

Moderator: Benj

Post Reply
Camille
Posts: 17
Joined: Mon Mar 20, 2017 9:39 pm
Contact:

how to access public variable of coMponent

Post by Camille »

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

User avatar
Benj
Matrix Staff
Posts: 14843
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: how to access public variable of coMponent

Post by Benj »

Hello,

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

Code: Select all

MyCoMponent::MyVar = 1

Camille
Posts: 17
Joined: Mon Mar 20, 2017 9:39 pm
Contact:

Re: how to access public variable of coMponent

Post by Camille »

Hello,
run perfectly! solved!
regards

Post Reply