Android Question TouchPanelCreator (Solved)

Shelby

Well-Known Member
Licensed User
I installed a new hard drive, downloaded a new B4A 11.50 program, made sure the pathways are correct, and so on. My project will now not compile with the error message:

B4A Version: 11.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: touchpanelcreator
Are you missing a library reference?
Error occurred on line: 38 (XUIScrollView)
Dim tpc As TouchPanelCreator

I can't find any touchpanelcreator in my code, so where is it?
 

Attachments

  • SS2021B4X.zip
    197.2 KB · Views: 172

Shelby

Well-Known Member
Licensed User
When I bring up my project (or Klaus's) I can click the logs tab before I run the project. There in red is the following:

Syntax Error.
Undeclared variable: 'sv2' is used before it was assigned any value.
Undeclared variable: 'sv2' is used before it was assigned any value.
Undeclared variable: 'sv2' is used before it was assigned any value.
Undeclared variable: 'sv2' is used before it was assigned any value.....22 times
Unknown type: scrollview2d.
Are you missing a library reference?


However, scrollview 2d is checked in the libraries tab.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
In your project, in the xTableLite module, line 64
Private SV2 As ScrollView2D
was commented, I do not why you did it.
I do not know nor understand why the project I posted does not work on your equipment.
Do you see the ScrollView2D library in the Libraries Manger tab and is it checked ?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
my suggestion is related to the thread title, also follow Klaus's suggestion regarding the other errors that are present
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
my suggestion is related to the thread title, also follow Klaus's suggestion regarding the other errors that are present
In the project in post #1, there is no reference to TouchPanelCreator.
So I do not know where this does come from nor do I know what and how Shelby is testing the project(s).

Yes scrollview 2d is checked.
So, then it should work, or you have something not set correctly.

Sorry, but as I cannot reproduce the problem, I cannot help further.
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
In the project in post #1, there is no reference to TouchPanelCreator.
So I do not know where this does come from nor do I not what and how Shelby is testing the project(s).

.
20220507_174509.jpg
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
I have seen instances where a solution is to change the package name. Is that relevant here? I'm not sure how to test Star-Dust's thread title comment.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I have seen instances where a solution is to change the package name. Is that relevant here? I'm not sure how to test Star-Dust's thread title comment.
you will have some problems in the configurations of the new installation. My advice is not to use the SD_XUIScrollView library.

Not changing the name of the libraries is not allowed by the license and would not solve anything. Use another library
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
you will have some problems in the configurations of the new installation. My advice is not to use the SD_ScrollView library.
OK, I'll try removing the SD_Scrol.... lib. from Additional Libraries.
Also I think you solved the TouchPanelcreator error message with your ViewsEx library suggestion. I'll uncheck that library and see if the TouchPanelCreator error messages reappears.
I was wrong, the TouchPanelCreator error message did not return when I unchecked the ViewsEx Library.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
I have been able to compile the example project in the opening post.
Then I have a crash probably because I don't have the DB.
These are the libraries checked:
libs.jpg

I just uncommented the line about SV2.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Now I see that in the logs tab before I run the project, there is the error message:

Unknown type: touchpanelcreator
And at bottom of logs:
Unknown type: scrollview 2d

Then when I add the ViewsEx library, the touchpanelcreator error disappears.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
I just uncommented the line about SV2.
I too, have uncommented that testing idea of uncommenting line 64 in my xTableLite module. It (the whole line 64) has been there for months even when the project was running fine. When I hover over that line which has a red squiggly underline, it reads: unknown type: scrollview2d
Are you missing a library reference?

Also, months ago, I think I was told to ignore it.
 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Upvote 0

klaus

Expert
Licensed User
Longtime User
I have been able to compile the example project in the opening post.
Have you tried the project in post #9 ?
There were other errors in the project in post #1, in the routines copying the DB from the Assets folder.

It has been there for months even when the project was running fine.
Sorry, I cannot believe this.
When you use xTableLite you NEED the ScrollView2D and the SV2 object in that module must be declared.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
It's just a squiggly line. Until now I haven't seen any problem arising from the squiggly line. It seems as though my IDE doesn't see the scrollview2d library.
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
Have you tried the project in post #9 ?
I have run your project and mine at least 8 times in the last hours. A brand new ScrollView 2d library was placed into my Addnl. Libs. folder yesterday. Maybe it wasn't brand new. I'll try to find another copy (Informatix?)
 
Last edited:
Upvote 0

Shelby

Well-Known Member
Licensed User
you will have some problems in the configurations of the new installation. My advice is not to use the SD_XUIScrollView library.
Star-Dust, when I bring up your Sample xScrollView project, the logs show:
Unknown type: xScrollView & Unknown type: game

Then when I compile the project, the same xScrollview is referenced as error and will not complete the compiling.

Is that referring to the library X2 in the libs tab?
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
are you using the latest version? Does it conflict with another library?
 
Upvote 0
Top