Re: question(s) about declaring variables



> One question about your comment about messy code.
> Did you mean multiple "As String" statements are messy, or code without them is messy.

Without anything is inefficient since VB automatically assumes you want them declared as variants, however IMO the type declaration
characters are messy and archaic. There's only a couple of situations where their use is warranted, other than that stick with "As
String".
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • Re: Dim + the sign &
    ... characters are not as widely understood as the $ sign for currency (even by ... I know they are type declaration ... in declaring a iValue as a integer and a sValue as a string I ... to an int if doing so in the dim iValue as String ...
    (microsoft.public.vb.general.discussion)
  • Re: Dim + the sign &
    ... saying using $3.95 is bad and it should always be written as ... Who is at fault if a code reviewer ... I would tend to agree with you were it not for the fact the type declaration ... characters are not as widely understood as the $ sign for currency (even by ...
    (microsoft.public.vb.general.discussion)