Android Question Error in SetPadding

Discussion in 'Android Questions' started by Touch, Apr 19, 2015.

  1. Touch

    Touch Active Member Licensed User

    I used without problems for a long time the following routine:
    Code:
    Sub SetPadding(v As View, Left As Int, Top As Int, Right As Int, Bottom As Int)

        
    Dim jo As JavaObject = v
        jo.RunMethod(
    "setPadding"Array As Object(Left, Top, Right, Bottom))
    End Sub
    Now I have this error:
    who can help me?

    Thanks
     
  2. klaus

    klaus Expert Licensed User

    I tested it on a Label without a problem.
    B4A version 4.30
    Android version 4.4.4.
    Could you post a small project showing the problem.
    What kind of View do you try to set the padding ?
     
  3. Touch

    Touch Active Member Licensed User

    I'm sorry.
    I solved.
    I included some routines with the same parameter names

    Code:
    Sub Left(Text As String, Length As Long)As String

       
    If Length>Text.Length Then Length=Text.Length
       
    Return Text.SubString2(0, Length)
    End Sub
    ...
    thanks for the reply
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice