W Wajdy New Member Licensed User Longtime User Aug 7, 2011 #1 Hi, Basic4Android brought me back to programming since the C64/Amiga days! Great and Handy My question is about user type, can I do this: Type XX(A as int, B as Button, C as String) Dim YY(10) as XX YY(0)=(1,Button1,Test) OR - I can not use views inside array/user type - and I have to do it like this YY(0).A = 1 YY(0).B= Button1 YY(0).C = "Test" Thank you
Hi, Basic4Android brought me back to programming since the C64/Amiga days! Great and Handy My question is about user type, can I do this: Type XX(A as int, B as Button, C as String) Dim YY(10) as XX YY(0)=(1,Button1,Test) OR - I can not use views inside array/user type - and I have to do it like this YY(0).A = 1 YY(0).B= Button1 YY(0).C = "Test" Thank you
Erel B4X founder Staff member Licensed User Longtime User Aug 8, 2011 #2 You can put views inside a user type. In order to assign values you need to use: B4X: YY(0).A = 1 YY(0).B= Button1 YY(0).C = "Test" This is not related to views or any other types. Upvote 0
You can put views inside a user type. In order to assign values you need to use: B4X: YY(0).A = 1 YY(0).B= Button1 YY(0).C = "Test" This is not related to views or any other types.