| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|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.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved