iOS Question Defining/Renaming a Data Type

iCAB

Well-Known Member
Licensed User
Longtime User
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 )

B4X:
#if B4A
EditText2 will be equivalent to EditText
#else
EditText will be equivalent to TextField
#end If

so I can use my declaration as

B4X:
Dim txtb as EditText2

instead of having
#if B4A all over the code
 
Top