Results 1 to 23 of 23

Thread: [RESOLVED] [2005] Option Strict On and Late Binding

Threaded View

  1. #4

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: [2005] Option Strict On and Late Binding

    Hack is totally right.

    Thks a lot sevenhalo, for the tip to use directcast. It worked.

    Now i ran into a similar problem:
    vb Code:
    1. Dim Helms(3), Armors(4), Pants(4), Gloves(4), Boots(4), SAS(3), SM(2), BCB(1), Shields(2), Wings(4), SSO(4), Misc(7), Tabelas(11) As String
    2. Dim Array(11) As Array
    3. Helms(0) = "Dk_Helms"
    4. Helms(1) = "Dw_Helms"
    5. Helms(2) = "Elf_Helms"
    6. Helms(3) = "Dl_Helms"
    7. Tabelas(0) = "BI_Helms"
    8. Array(0) = Helms
    9. Armors(0) = "Dk_Armors"
    10. Armors(1) = "Dw_Armors"
    11. Armors(2) = "Elf_Armors"
    12. Armors(3) = "Dl_Armors"
    13. Armors(4) = "Mg_Armors"
    14. Tabelas(1) = "BI_Armors"
    15. Array(1) = Armors
    16. ...
    17. 'This line is after a nested loop
    18. Dim CmdSelect As New OleDb.OleDbCommand("SELECT * FROM " & Array(Actual)(TabActual).ToString, MuShop.ClassAndItems)

    I get the same error were: "Array(Actual)(TabActual).ToString" but since its a jagged array i cant figure out how to solve this.
    Last edited by Lasering; Nov 2nd, 2007 at 09:34 AM.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width