Notifications
Clear all

[Closed] two functions for a button ??

 eek

A struct is a container of variables, function etc and is very powerful because the variables inside the stuct get there scope automatically.

struct _test
(
fn testA = ( print 10);
fn testB = (print 20);
)

test = _test()

on testButton pressed do
(
test.testA()
)

on testButton rightClick do
(
test.testB()
)
Page 2 / 2