Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dubt and cleariy on counter line (2000)

    ... My friend when use a count of line use this:
    Elenco.Range("B" & CStr(N))... eccc...

    i regular use:
    Elenco.Range("B" & N)... eccc...

    why my friend use also Cstr

    ???

    Wath is the best method?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Dubt and cleariy on counter line (2000)

    The only difference I see is that CStr version is an explicit conversion, where the other does it implicitly.

    I use the implicit one and would only think about the explicit one if I had problems with the other, though I can't think if any cases where I would anticipate problems of conversion in this type of looping...

    Steve

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dubt and cleariy on counter line (2000)

    good explain.
    Tks.

Posting Permissions

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