Re: question(s) about declaring variables



"spacewarp" <sureshsitaula@xxxxxxxxx> wrote in message
news:1119851711.614989.110510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> One question, Michael : Are 1000& and CLng(1000) exactly the same?
>
> I mean, doesn't the latter come at a slight performance loss of calling
> a function and the associated conversion of an integer to a long value?
> Or is CLng(1000) directly evaluated as 1000& during compilation?

They compile to the exact same assembly code so no performance hit at all.

Michael


.