Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    311

    Unanswered: i = InStr(0, lstMgmtCk, "-") = invalid procedure call or arg

    I get the msg : = invalid procedure call or arg

    dim i as integer
    when using i = InStr(0, lstMgmtCk, "-")
    where lstmgmtck returns 1234-4321

    ?

    M~

  2. #2
    Join Date
    Oct 2003
    Posts
    311

    Re: i = InStr(0, lstMgmtCk, "-") = invalid procedure call or arg

    I omitted 0 at start and it worked


    Never mind

  3. #3
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    but the reason is that instr is 1-based, not 0-based. leaving out the (invalid) 0 is the same as replacing the 0 with 1 (the default).

    izy

Posting Permissions

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