faulty format

Discussion in 'Questions (Windows Mobile)' started by Max Tillberg, Mar 8, 2009.

  1. Max Tillberg

    Max Tillberg Member Licensed User

    Hi,
    I am trying to use
    Form2.DrawImage(RulerImage((OwnerOfState(AttackToStateNumber))), imageX0, imageY0, imageX, imageY)

    defined as
    Dim RulerImage(13) As String
    Dim OwnerOfState(22) As Int16
    RulerImage(1) = "image.bmp"
    OwnerOfState(2) = 1
    AttackToStateNumber = 2

    but I get an error message like indatastring has a faulty format, any suggestions?

    Sincerely,
    Max Tillberg
     
  2. klaus

    klaus Expert Licensed User

    You have too many parentheses:

    You should replace:
    Form2.DrawImage(RulerImage((OwnerOfState(AttackToS tateNumber))), imageX0, imageY0, imageX, imageY)

    by
    Form2.DrawImage(RulerImage(OwnerOfState(AttackToS tateNumber)), imageX0, imageY0, imageX, imageY)

    Best regards.
     
  3. Max Tillberg

    Max Tillberg Member Licensed User

    Thanks a lot, I feel like a complete idiot.

    /Max
     
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