I cannot create arrays of controls

Here one can report bugs or hold discussions about bugs updates and work arounds.
Post Reply
Angel
Posts: 87
Joined: Sat Nov 19, 2011 9:34 am

I cannot create arrays of controls

Post: # 779Post Angel
Tue Nov 22, 2011 7:03 pm

with the package FnxBasic2011, Dim myrichedits(10) as Richedit or Dim myButtons(3) as Button, etc. causes a severe error.

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

I cannot create arrays of controls

Post: # 780Post Marco
Wed Nov 23, 2011 4:36 pm

That is correct with 2011 you can not create arrays of objects, it is not build in yet.
best regards

Angel
Posts: 87
Joined: Sat Nov 19, 2011 9:34 am

I cannot create arrays of controls

Post: # 781Post Angel
Wed Nov 23, 2011 5:55 pm

Thanks for your information.

Bruno FR28
Posts: 11
Joined: Fri Aug 10, 2012 6:45 am

I cannot create arrays of controls

Post: # 782Post Bruno FR28
Tue Aug 14, 2012 11:49 am

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.

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

I cannot create arrays of controls

Post: # 783Post Marco
Tue Aug 14, 2012 3:31 pm

also not possible, I had to implement it. It is on the todo list.

best regards

Bruno FR28
Posts: 11
Joined: Fri Aug 10, 2012 6:45 am

I cannot create arrays of controls

Post: # 784Post Bruno FR28
Thu Aug 16, 2012 8:17 am

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.

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

I cannot create arrays of controls

Post: # 785Post Marco
Thu Aug 16, 2012 3:20 pm

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

Post Reply