Alexander Stolte Expert Licensed User Longtime User Jan 14, 2019 #1 Hello, if i add the XUI Views b4xlib, then the log says: Code: Current declaration does not match the previous one Previous {Type=Content,Rank=0, RemoteObject=False} Current: {Type=B4XView, Rank=0, RemoteObject=True} What is that?
Hello, if i add the XUI Views b4xlib, then the log says: Code: Current declaration does not match the previous one Previous {Type=Content,Rank=0, RemoteObject=False} Current: {Type=B4XView, Rank=0, RemoteObject=True} What is that?
walterf25 Expert Licensed User Longtime User Jan 14, 2019 #2 Alexander Stolte said: Hello, if i add the XUI Views b4xlib, then the log says: Code: Current declaration does not match the previous one Previous {Type=Content,Rank=0, RemoteObject=False} Current: {Type=B4XView, Rank=0, RemoteObject=True} View attachment 76309 What is that? Click to expand... You must have a variable declared twice and with different types. Walter Upvote 0
Alexander Stolte said: Hello, if i add the XUI Views b4xlib, then the log says: Code: Current declaration does not match the previous one Previous {Type=Content,Rank=0, RemoteObject=False} Current: {Type=B4XView, Rank=0, RemoteObject=True} View attachment 76309 What is that? Click to expand... You must have a variable declared twice and with different types. Walter
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2019 #3 What is the variable name? Upvote 0
Alexander Stolte Expert Licensed User Longtime User Jan 15, 2019 #4 walterf25 said: You must have a variable declared twice and with different types. Click to expand... in the same module not. This happend only if i add the xui view lib, without any changes. or may I not do the following: Module: main Code: Dim tmp_view as B4XView Module: anothermodule Code: Dim tmp_view as Panel Upvote 0
walterf25 said: You must have a variable declared twice and with different types. Click to expand... in the same module not. This happend only if i add the xui view lib, without any changes. or may I not do the following: Module: main Code: Dim tmp_view as B4XView Module: anothermodule Code: Dim tmp_view as Panel
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2019 #5 I'm not sure that I understand. Can you upload the project? Upvote 0
Alexander Stolte Expert Licensed User Longtime User Jan 15, 2019 #6 Erel said: Can you upload the project? Click to expand... it is a very big project. Erel said: I'm not sure that I understand. Click to expand... The error occurs, because i have a variable name double with 2 different types, but this also occurs across modules? Because i dont change anything, i only check the XUI View lib on the lib. tab and then the error message is on the log. Upvote 0
Erel said: Can you upload the project? Click to expand... it is a very big project. Erel said: I'm not sure that I understand. Click to expand... The error occurs, because i have a variable name double with 2 different types, but this also occurs across modules? Because i dont change anything, i only check the XUI View lib on the lib. tab and then the error message is on the log.
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2019 #7 Alexander Stolte said: The error occurs, because i have a variable name double with 2 different types, but this also occurs across modules? Click to expand... It shouldn't happen. If you like you can send me the project to [email protected] and I'll check it. Upvote 0
Alexander Stolte said: The error occurs, because i have a variable name double with 2 different types, but this also occurs across modules? Click to expand... It shouldn't happen. If you like you can send me the project to [email protected] and I'll check it.
Alexander Stolte Expert Licensed User Longtime User Jan 15, 2019 #8 Erel said: It shouldn't happen. If you like you can send me the project to [email protected] and I'll check it. Click to expand... I found the Error, one of my Services, called "content" and in the XUI View lib. is a B4XView called "content". Upvote 0
Erel said: It shouldn't happen. If you like you can send me the project to [email protected] and I'll check it. Click to expand... I found the Error, one of my Services, called "content" and in the XUI View lib. is a B4XView called "content".
asales Expert Licensed User Longtime User Jan 22, 2019 #9 For anyone that has the similar problem. I have a module with the name "Scale" and I get the same error: "Current declaration does not match previous one". Code: Error compiling program. Error description: Current declaration does not match previous one. Previous: {Type=Scale,Rank=0, RemoteObject=False} Current: {Type=Float,Rank=0, RemoteObject=True} Error occurred on line: 21 Private Scale As Float So, I change the name of the module to solve the problem. Upvote 0
For anyone that has the similar problem. I have a module with the name "Scale" and I get the same error: "Current declaration does not match previous one". Code: Error compiling program. Error description: Current declaration does not match previous one. Previous: {Type=Scale,Rank=0, RemoteObject=False} Current: {Type=Float,Rank=0, RemoteObject=True} Error occurred on line: 21 Private Scale As Float So, I change the name of the module to solve the problem.