claudio Member Licensed User Longtime User May 29, 2009 #1 Hi, all I'm here again. Now my question is: Can i define a Dim Type() myvar only once? Example: if i have a struct called person and i have serveral groups of persons i have to define: Dim Type(Name, ID, Age) group1(6) Dim Type(Name, ID, Age) group2(10) and so on... It would be nice if i can do something like: Dim Type(Name, ID, Age) person Dim group1(6) as person Dim group2(10) as person and so on. I did't found nothing similar Best regards Claudio
Hi, all I'm here again. Now my question is: Can i define a Dim Type() myvar only once? Example: if i have a struct called person and i have serveral groups of persons i have to define: Dim Type(Name, ID, Age) group1(6) Dim Type(Name, ID, Age) group2(10) and so on... It would be nice if i can do something like: Dim Type(Name, ID, Age) person Dim group1(6) as person Dim group2(10) as person and so on. I did't found nothing similar Best regards Claudio
Erel B4X founder Staff member Licensed User Longtime User May 29, 2009 #2 That is currently not possible. It will probably be added in a future version.
klaus Expert Licensed User Longtime User May 29, 2009 #3 Dim Type(Name, ID, Age) person Dim group1(6) as person Dim group2(10) as person Click to expand... This is possible in Visual Basic but unfortunately not in B4PPC. Best regards.
Dim Type(Name, ID, Age) person Dim group1(6) as person Dim group2(10) as person Click to expand... This is possible in Visual Basic but unfortunately not in B4PPC. Best regards.
claudio Member Licensed User Longtime User May 30, 2009 #4 Erel said: That is currently not possible. It will probably be added in a future version. Click to expand... Ok thanks Claudio
Erel said: That is currently not possible. It will probably be added in a future version. Click to expand... Ok thanks Claudio