Android Question Field lstvpix was declared with the wrong ty

Status
Not open for further replies.

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

i got error when Layout Load
B4X:
pnlPick.LoadLayout("LytPick")

error:
B4X:
java.lang.RuntimeException: java.lang.RuntimeException: Field lstvpix was declared with the wrong type.

B4X:
Private btnOK As B4XView
Private lblTitle As B4XView
Private Panel As B4XView
Private lstvPix As CustomListView

notes:
lstvpix = customlistview
b4a version = 9.50

any help ?
 

Attachments

  • lytpick.bal
    3.5 KB · Views: 153

DonManfred

Expert
Licensed User
Longtime User
i guess you are using a old customlistview module in your app and now want to migrate to xcustomlistview?

- Remove the customlistview module from the project
- remove the customlistview from the layout
- add the xcustomview to the layout and save it.
 
Upvote 0

Toky Olivier

Active Member
Licensed User
Longtime User
Hello, I understand that I should create another thread but may be it's easier if I continue this one for this time.
I encontered the same error but I have many views in the Activity having properties aleady configured. If I delete the views having problem, I need to configure them after one by one. Any methods to avoid this?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Hello, I understand that I should create another thread but may be it's easier if I continue this one for this time.
It is not easier. It means that other members need to read all posts to find the questions and answers. The question should be in the first post.
 
Upvote 0
Status
Not open for further replies.
Top