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
Has thanked: 5 times
Been thanked: 3 times
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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
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
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: how to access public variable of coMponent

Post by Camille »

Hello,
run perfectly! solved!
regards

Post Reply