Re: [Gambas-user] TreeView: why is error = TRUE?

2009-05-04 Thread Rolf-Werner Eilert
Thank you for that explanation, it does make sense, you're right :-) From the reading-and-understanding-code point of view, however, it might have been better to have it the other way round. In everyday language (= everyday logic), a NOT clause is used pretty often, and failing (error) is

Re: [Gambas-user] TreeView: why is error = TRUE?

2009-04-30 Thread Fabien Bodard
in fact nothing is unlogical ... it's the gambas way... in gambas an error, impossibility, return true... in all the function that return a boolean you can imagine to write this in that way CONST bError as Boolean =True if .MoveChild = bError then ... its the same ! in another way it limit

[Gambas-user] TreeView: why is error = TRUE?

2009-04-29 Thread Rolf-Werner Eilert
Just one question for understanding it better: Why is e. g. MoveNext or MoveChild TRUE in case there is NOTHING and not vice-versa? Seems pretty unlogical and looks somewhat strange in code... Regards Rolf -- Register