@jfperusse@sim - I occasionally get a red error bar that will not fully display in portrait mode. Usually they display OK in landscape but I am now seeing an error bar that will not fully display in landscape. It stops half way across with the … symbol at the end. The project should run in both portrait and landscape and errors need to fully display. In a lot of cases I can figure out the error but this one has me confused - I need to see the context of the message fully.
Image attached.
p.s. when this occurs there are two tabs showing the error marker at the top.
@jfperusse - thanks for the reply, I hadn’t tried tapping on it but when I just tried it just contracted the error message to a red pointer on the right hand side of the page.
Another thought though - I did mention another error on a separate tab and the two errors may be related =
I built a class in which I add one parameter to the class to define it - the parameter is an array. I then proceeded to initialise it with 6 elements of that array as parameters. I’ll list the code below. I think the class setup does not interpret the array as an array but as a variable. Playing around with it I still get the same errors even when I have placed all array variables in the class() definition and the class:init() definition.
Button = class(butName)
function Button:init(butName[1], butName[2] …etc)
butName = {
350, 400, vec3(100, 150, 200)
}
I was just being lazy !!!
Can you actually use an array in a Class definition instead of the variables used in a call ?
@jfperusse - thanks for the update. I’m still playing with passing array/tabled data to a Class. I’ve seen several Lua references now so just need to get my head round it. Thanks again.