Adding a simple _Click Event to a Custom View (without parameters) results in a warning "," expected then an error when compiling.
Normaly a _Click event does not have any parameters , and I do not need to pass any.
An Earlier tutorial for Custom Views shows you did not need to pass any . Custom Views with Designer Support
But then an updated tutorial ( B4J ) shows Event declaration as such ..
The B4A Manual simply states ...
If the event routine has parameters these must also be declared.
#Event: ExampleEvent (Value As Int)
I can just pass a Boolean in the signature and all is good and problem solved, But I just need clarification
that Custom View Events by default must have at least a single parameter , or I am doing something wrong.
Regards and Thanks
Normaly a _Click event does not have any parameters , and I do not need to pass any.
An Earlier tutorial for Custom Views shows you did not need to pass any . Custom Views with Designer Support
B4X:
'Events declaration
#Event: DoubleClick
#Event: SingleClick
But then an updated tutorial ( B4J ) shows Event declaration as such ..
B4X:
#Event: ExampleEvent (Value As Int)
The B4A Manual simply states ...
If the event routine has parameters these must also be declared.
#Event: ExampleEvent (Value As Int)
I can just pass a Boolean in the signature and all is good and problem solved, But I just need clarification
that Custom View Events by default must have at least a single parameter , or I am doing something wrong.
Regards and Thanks