Page 1 of 1
I cannot create arrays of controls
Posted: Tue Nov 22, 2011 7:03 pm
by Angel
with the package FnxBasic2011, Dim myrichedits(10) as Richedit or Dim myButtons(3) as Button, etc. causes a severe error.
I cannot create arrays of controls
Posted: Wed Nov 23, 2011 4:36 pm
by Marco
That is correct with 2011 you can not create arrays of objects, it is not build in yet.
best regards
I cannot create arrays of controls
Posted: Wed Nov 23, 2011 5:55 pm
by Angel
Thanks for your information.
I cannot create arrays of controls
Posted: Tue Aug 14, 2012 11:49 am
by Bruno FR28
Bonjour, hello
and with FNX Apr 2012?
i have no syntax error on declare :
dim btn(50) as facebutton
dim nb as integer
nb= 1
but on this line :
btn(nb).left=10
error compiler : error 8 line 24 `LEFT` not declared/unknown
Cordialement/Regards
Bruno.
I cannot create arrays of controls
Posted: Tue Aug 14, 2012 3:31 pm
by Marco
also not possible, I had to implement it. It is on the todo list.
best regards
I cannot create arrays of controls
Posted: Thu Aug 16, 2012 8:17 am
by Bruno FR28
Bonjour/ hello
Ok,
In the next version, is it possible to create new object
like
dim my_obj as object
my_obj = create (button) or my_obj = new(form)
and
free(my_obj) at the end.
with that, we can create object window by program.
and if we can have
dim my_obj(n) as object
that wil be perfect... wtih user object also...
Cordialement/Regards
Bruno.
I cannot create arrays of controls
Posted: Thu Aug 16, 2012 3:20 pm
by Marco
I`m not sure if that is possible because fnxbasic can only use static components.
On the other hand I`m busy to development a copy function for objects.
best regards