Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: datatype problem

    Dim invo() As String
    ReDim invo(3)

    invo = Array("tttt", "add", "bdd", "cddd")

    it will have datatype error,

    Dim invo() As Variant
    ReDim invo(3)

    invo = Array("tttt", "add", "bdd", "cddd")

    This one is OK, no error.

    I want to know why there are error when using "String" datatype?
    Please let me know , thanks.

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    what did your investigation of this problem in the help system tell you?

    did you make any attempt to find out what the array function does?

    or is it a like of comprehension of the help system.

Posting Permissions

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