I iCAB Well-Known Member Licensed User Longtime User Aug 16, 2016 #1 Hi All I am porting an application from B4A to B4I I was wondering if I can declare an equivalent for EditText for example call it EditText2 (without having to use a class or type.xxx ) Code: Copy #if B4A EditText2 will be equivalent to EditText #else EditText will be equivalent to TextField #end If so I can use my declaration as Code: Copy Dim txtb as EditText2 instead of having #if B4A all over the code
Hi All I am porting an application from B4A to B4I I was wondering if I can declare an equivalent for EditText for example call it EditText2 (without having to use a class or type.xxx ) Code: Copy #if B4A EditText2 will be equivalent to EditText #else EditText will be equivalent to TextField #end If so I can use my declaration as Code: Copy Dim txtb as EditText2 instead of having #if B4A all over the code
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2016 #2 It is not possible. There are no types aliases. Upvote 0
I iCAB Well-Known Member Licensed User Longtime User Aug 17, 2016 #3 Erel said: It is not possible. There are no types aliases. Click to expand... Thanks for your reply. Please keep in mind on the wish list Upvote 0
Erel said: It is not possible. There are no types aliases. Click to expand... Thanks for your reply. Please keep in mind on the wish list