hatzisn Expert Licensed User Longtime User Yesterday at 3:03 PM #1 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); Click to expand... 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.
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); Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Yesterday at 3:15 PM #2 What is the output of: B4X: Log(Value) Log(GetType(Value)) Upvote 0
hatzisn Expert Licensed User Longtime User Yesterday at 3:20 PM #3 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
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)
hatzisn Expert Licensed User Longtime User Yesterday at 3:22 PM #4 Meanwhile the same code runs with no problem in B4A. Upvote 0
hatzisn Expert Licensed User Longtime User Yesterday at 3:29 PM #5 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
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.
Erel B4X founder Staff member Licensed User Longtime User Yesterday at 3:41 PM #6 Make a test - Clean project (Ctrl + P). Run the program and make sure that there is no breakpoint in this sub. If it works then you are safe. Upvote 0
Make a test - Clean project (Ctrl + P). Run the program and make sure that there is no breakpoint in this sub. If it works then you are safe.