Android Question Runmethod not matched

rosippc64a

Active Member
Licensed User
Longtime User
Hi All!
I have a simple code what causes an error:
java.lang.RuntimeException: Method: Merge not matched.
How do I need pass the params to the method Merge?
B4X:
Public Sub sMerge( InDir As String, flist() As String, pOutDir As String, pOutName As String)
    lDone = False
    nativeMe = Me
    nativeMe.RunMethod("Merge", Array As Object (InDir, flist, pOutDir, pOutName)    ) '<- error here
...
#if Java
..
public void Merge(String InDir, String[] selection, String OutDir, String OutName) {
   Wm.Merge(InDir,selection,OutDir,OutName);
}
End Sub
thanks in advance
Steve
 

rosippc64a

Active Member
Licensed User
Longtime User
Solved. I gave a flist() As Object instead of flist() As String.
Stupid thing.
I love this language.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…