Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The # symbol

2 REPLIES 2
Reply
Message 1 of 3
Civil3DReminders_com
249 Views, 2 Replies

The # symbol

The # symbol is used in a lot of the samples provided with the program. What does it mean? Searching for the # symbol doesn't work very well using Google or help

Example from the subassembly vb code:
Private Const MaxCutHeightDefault = 10.0#
Private Const BenchWidthDefault = 5.0#
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Civil3DReminders_com

That is VB(A)'s way of showing the number is a Double.

From the VB.NET help:
"Type Characters. Appending the literal type character R to a literal forces
it to the Double data type. Appending the identifier type character # to any
identifier forces it to Double."

You can test this in VBA.

Dim x as Double

x=5.00

Entering the above, the IDE will automatically change the 5.00 to 5#

wrote in message news:5819164@discussion.autodesk.com...
The # symbol is used in a lot of the samples provided with the program. What
does it mean? Searching for the # symbol doesn't work very well using Google
or help

Example from the subassembly vb code:
Private Const MaxCutHeightDefault = 10.0#
Private Const BenchWidthDefault = 5.0#
Message 3 of 3

Thanks Jeff
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report