in V.3:
Create a class ("MyClass') like this:
(Save the class)
In another module try code completion: MyClass.: it will not display SomeProp as a possible property
Probably this is caused by the private variable having the same name as the public property ...
Change the class implementation to:
(Save the class)
Still code completion will NOT display SomeProp as possible property.
Rename the property to:
(save the class)
Code completion WILL show SomeProp2 as possible property
Rename the property back to:
(save the class)
Code completion NOW WILL show SomeProp as possible property
Create a class ("MyClass') like this:
B4X:
private someProp as int
...
public getSomeProp as int
return someProp
end sub
(Save the class)
In another module try code completion: MyClass.: it will not display SomeProp as a possible property
Probably this is caused by the private variable having the same name as the public property ...
Change the class implementation to:
B4X:
private p_someProp as int
...
public getSomeProp as int
return p_someProp
end sub
(Save the class)
Still code completion will NOT display SomeProp as possible property.
Rename the property to:
B4X:
public getSomeProp2 as int
return p_someProp
end sub
(save the class)
Code completion WILL show SomeProp2 as possible property
Rename the property back to:
B4X:
public getSomeProp as int
return p_someProp
end sub
(save the class)
Code completion NOW WILL show SomeProp as possible property
Last edited: