Results 1 to 4 of 4

Thread: casting [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    casting [RESOLVED]

    ok, so I decided to turn Option Strict On (mainly cause I am now working with C# in addition to VB) and now I have a TON of entries in my Task List. Not surprising. Most of them are simple..cast from a string to an integer or vise-versy. I was wondering though, if explicitly casting, and I mean A LOT of casting is going on now, will be noticable on performance. Particularly, I concerned about the application slowing down due to heavy processing.

    Is this a concern? Should I re-structure a data-base table here and there to help prevent this? or does it even matter.
    Last edited by Andy; Aug 13th, 2004 at 12:07 PM.

  2. #2
    Fanatic Member
    Join Date
    May 2002
    Posts
    746
    Makes you realize how lazy you could get away w/ being in VB doesn't it? Anyway, I'm under the [perhaps mistaken] impression that a cast is going on behind the scenes anyway so it shouldn't slow anything down.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Late binding does make overhead , so always use always early binding .For casting at runtime , I don't think it would be a big deal.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    cool. thanks for the input. I had a LOT of errors to correct. casting to integers, casting to strings, casting controls to textboxes, comboboxes, etc.

    now, I have to figure out how to correct the "late binding" errors.


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