Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: incrediBILL & lawman

Message Too Old, No Replies

Visual Basic quite basic question

Donīt laugh, Iīm not a programmer!

     

Eugenios

5:57 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



Hello

In visual basic 6:

L = 1#

What is the # for?

Does it changes the variable type definition temporaly?

Thanks

Eugenios

7:47 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



This is the line of code that puzzles me:

yStep = 1# / (m_cDib.Height / (m_scale * 2#))

Canīt figure out what is the # used for.

Thanks

Nutter

8:38 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



It's been a while, but I think it has something to do with forcing a variable to be a certain type. I'm thinking it's a long.

You might check over in the ASP / .Net forum.

- Ryan

Eugenios

10:33 pm on Jan 21, 2005 (gmt 0)

10+ Year Member



Yes, thanks. It seems thatīs the use of the #.

The xStep variable is defined as DOUBLE. So I guess that using the # forces the number to be the same type as the variable.

Anyway, I deleted the # from the code and it still works.

Thanks!

Enrique

 

Featured Threads

Hot Threads This Week

Hot Threads This Month