Control arrays

Tom Law

Active Member
Licensed User
Longtime User
Is it possible to use control arrays in Basic4android and if so how should I initialize them?

For instance if I want to create ten labels with a common name 'Fred' would I have to initialize them as Dim Fred(0) as label, Dim Fred(1) as label etc

or can I use dim Fred(0 to 9) as label or something similar?

:sign0104:
 

Tom Law

Active Member
Licensed User
Longtime User
Hi Helen,

Thanks for replying. I,m currently trying to create a master detail database setup which has a customer table and an equipment list. Ideally I wanted to use a datagrid to hold the equipment listing however as this is not available I was hoping to build one using a series of text boxes.


This works ok but the code gets very complex without control arrays. For a number of reasons I would prefer not to use a scrollview. How do I dimension the control array?

Tom
 
Upvote 0

NeoTechni

Well-Known Member
Licensed User
Longtime User
That's hilarious.

VB.NET doesn't do this, but you do.

By hilarious, I mean it's sad/infuriating that VB.NET doesn't do that.
 
Upvote 0
Top