Android Question Strange error during compilation

Gerardo52

Member
Licensed User
Hi,
This is the rror I see during compilation of my project in attach:


Error
B4A line: 24
End Sub
shell\src\b4a\example\main_subs_0.java:174: error: method _process_globals in class b4xmainpage_subs_0 cannot be applied to given types;
b4xmainpage_subs_0._process_globals();
^
required: RemoteObject
found: no arguments
reason: actual and formal argument lists differ in length
1 error

Please Help
 

Attachments

  • B4A.zip
    279.2 KB · Views: 16

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Thank you.
I don't know this particular procedure.
Can you show me an example here?
Many thanks in advance
In the upper part of your B4XMainPage you will see a line with
CTRL + CLICK TO EXPORT
Modify the ending name (Project.zip) to suit your app.
Then click on it while keeping CTRL pressed on keyboard.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Thanks indeed.
If I understood well I must click over the project file or over the line in the source code?

Thank you
Over the line in the source code
 
Upvote 0

Gerardo52

Member
Licensed User
Done but it gives always the same:


Error
B4A line: 24
End Sub
shell\src\b4a\example\main_subs_0.java:174: error: method _process_globals in class b4xmainpage_subs_0 cannot be applied to given types;
b4xmainpage_subs_0._process_globals();
^
required: RemoteObject
found: no arguments
reason: actual and formal argument lists differ in length
1 error

I see you have the donate button... Can you fix this and monday I will charge some money Bank is closed now in Italy...
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
I will try to check in the afternoon.
Right now I am not in front of pc.
I will see if I can do something with your first attachment.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
@Gerardo52 please try to export your project correctly, if not we can't test it.
You should see this line in your code, in B4XMainPage
Immagine.png

You have to click on that text, it will become clickable while you keep pressed CTRL on your keyboard.
It will generate a file called Project.zip if you change nothing, but it would be better if before clicking you change Project.zip into something that identify your app (example MyApp.zip).
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
You must delete the
Process_Globals
sub from B4XMainPage.
You can add
B4X:
Public pippo As String = "1"
in Process_Globals in the Main, but I would prefer to add a separate Code Module for public variables.
See the example.

*** EDIT ***
I changed the Package Name to avoid overwriting your existing app.
 

Attachments

  • TopGroup.zip
    258 KB · Views: 8
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Thank you Sagenut. The aspps work fine now thanks to your suggestion. Do I must do some donation for this? Let me know. Thanks again
I wrote you privately.
 
Upvote 0
Top