| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|Visual Basic quite basic question|
Donīt laugh, Iīm not a programmer!
| 5:57 pm on Jan 21, 2005 (gmt 0)|
In visual basic 6:
L = 1#
What is the # for?
Does it changes the variable type definition temporaly?
| 7:47 pm on Jan 21, 2005 (gmt 0)|
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.
| 8:38 pm on Jan 21, 2005 (gmt 0)|
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.
| 10:33 pm on Jan 21, 2005 (gmt 0)|
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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved