vb6 question

hi all,

i’ve to fix this code that was written in vb 6 and there is something i don’t understand.

the line of code is

hours = 8760#
If test * 100# / hours >= msngRequiredCompleteness Then
’ dom something
end if

what is this # doing? you can see # with 8760 and with 100. I don’t understand what is the function of # in this line of code

any help? thank you

Re: vb6 question

nobody has any idea?

Re: vb6 question

okk, i found the answer on my own.

for someone who is also looking for the reply to this question

makes sure that the variable is treated as a Double.

why? don't know, Microsoft gotta do something stupid.

Re: vb6 question

Wait till you start C / C++ or Java
then you will know wat stupidity is :)

good u found out of your own