iOS Question What is wrong in this code?

hatzisn

Expert
Licensed User
Longtime User
This code fails in compiling of a project. It is in a xCustomListView_ItemClick event.

I get this error while compiling:

/Users/ereluziel/Documents/UploadedProjects/<user id>/B4iProject/b4i_b4xmainpage.m:1685:24: error: expected expression
1685 | _scvlitem = (_scvlitem*)(_value);

The B4X code is this:
B4X:
Dim scvLItem As scvLItem = Value

Where scvLitem is a Type that is entered as a value in a preoptimized list.
 

hatzisn

Expert
Licensed User
Longtime User
If I rem out all the code of the sub in order to run the first returns the values of the Type and the second returns (_scvlitem)
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Meanwhile the same code runs with no problem in B4A.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
I will be damned. Reveilling the REMed out code part by part, now the code does not break. I have not changed anything else, other than adding the code you provided.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…