Android Question [SOLVED] Project Will Not Compile After Installing B4A 8.80

mmieher

Active Member
Licensed User
Longtime User
After updating to B4A 8.80, my project will no longer compile. In the log window, the following is in red:

Unknown member: replace
Unknown member: replace
Current declaration does not match previous one.
Previous:{Type=s;Rank=0;RemoteObject=False}
Current:{Type=String,Rank=0;RemoteObject=True}

Compile shows this:

B4A Version: 8.80
Parsing code. (0.10s)
Building folders structure. (0.01s)
Compiling code. Error
Error compiling program.
Error description: Current declaration does not match previous one.
Previous: {Type=s,Rank=0, RemoteObject=False}
Current: {Type=String,Rank=0, RemoteObject=True}
Error occurred on line: 93
Dim s As String = _
$"--${boundary}
Content-Disposition: form-data; name="${key}"
${value}"$


I have searched all modules for the word "replace". It does not exist. Nor does the line "Dim s As String = ..."
I am using the "ADR String Functions, Version 1.2, April 6th, 2012". s.bas. I think this must have something to do with it.

Any ideas?
 

DonManfred

Expert
Licensed User
Longtime User
Any ideas?
the lib is not needed at all.
What about remove the lib and use the build in string functions? All what you need is there.
Additionally it is an really old lib.
Dim s As String
but at some other point in your app you are using s as an other type than string?
 
  • Like
Reactions: JCO
Upvote 0

mmieher

Active Member
Licensed User
Longtime User
Not using s as anything else. I weaned myself off the s.bas lib. I was unaware of substring, substring2, etc. Thanks, Don.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I weaned myself off the s.bas lib
so this was the issue. You are using s.bas as a library/module. then you decided to use a string name s which causes the
Current declaration does not match previous one.
Name you string anything else and the error is gone.

But, anyway. As said you don´t need the lib as all the needed methods are available in the core libraries.
 
  • Like
Reactions: JCO
Upvote 0

mmieher

Active Member
Licensed User
Longtime User
so this was the issue. You are using s.bas as a library/module. then you decided to use a string name s which causes the

Name you string anything else and the error is gone.

But, anyway. As said you don´t need the lib as all the needed methods are available in the core libraries.
 
Upvote 0

mmieher

Active Member
Licensed User
Longtime User
I did not use a string called "s". I searched entire project for "dim s as" or "public s as" or "private s as". I think B4A is using "dim s as string" somewhere?
 
Upvote 0
Top