func init // adds using namespace sys.add_use('System.Data') end func ConnectionState v = this.props('ConnectionState').value flags = ((v _and_ 1) ? '|ConnectionState.Closed' : '') + ((v _and_ 2) ? '|ConnectionState.Open' : '') + ((v _and_ 4) ? '|ConnectionState.Connecting' : '') + ((v _and_ 8) ? '|ConnectionState.Executing' : '') + ((v _and_ 16) ? '|ConnectionState.Fetching' : '') + ((v _and_ 32) ? '|ConnectionState.Broken' : '') return('(0' + flags + ')') end