Dec 19, 2006 #1 wadey Programmer Jun 6, 2006 54 GB why does VB add # on to the end of this line? :- dim lngVar as long lngVar = 999999999999999# Please do not tell me the number is to big for a long, because I already know this. I'm merely just curious what the # does in this situation
why does VB add # on to the end of this line? :- dim lngVar as long lngVar = 999999999999999# Please do not tell me the number is to big for a long, because I already know this. I'm merely just curious what the # does in this situation
Dec 19, 2006 #2 sostek MIS Sep 17, 2004 134 US Might that be an overflow indicator? Upvote 0 Downvote
Dec 19, 2006 #4 HughLerwill Programmer Nov 22, 2004 1,818 GB The # indicates that vb is going to treat the literal number "999999999999999" as if it were a Double. Upvote 0 Downvote
The # indicates that vb is going to treat the literal number "999999999999999" as if it were a Double.
Dec 19, 2006 #5 gmmastros Programmer Feb 15, 2005 14,902 US The pound sign indicates that your value has a data type of Double. For example... [tt][blue] Dim lngVar As [!]Variant[/!] lngVar = 999999999999999# MsgBox TypeName(lngVar) & ": " & CStr(lngVar) [/blue][/tt] -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
The pound sign indicates that your value has a data type of Double. For example... [tt][blue] Dim lngVar As [!]Variant[/!] lngVar = 999999999999999# MsgBox TypeName(lngVar) & ": " & CStr(lngVar) [/blue][/tt] -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom