homepage Welcome to WebmasterWorld Guest from 54.235.39.132
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Local / Foo
Forum Library, Charter, Moderators: incrediBILL & lawman

Foo Forum

    
Visual Basic quite basic question
Donīt laugh, Iīm not a programmer!
Eugenios




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

Hello

In visual basic 6:

L = 1#

What is the # for?

Does it changes the variable type definition temporaly?

Thanks

 

Eugenios




msg:302761
 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.

Thanks

Nutter




msg:302762
 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.

- Ryan

Eugenios




msg:302763
 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.

Thanks!

Enrique

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Local / Foo
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved