Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a question about a piece of code that bothers me because I do not understand how it works.
I have used a red pen to write my comments beneath.
Dim DrawingScale As Double DrawingScale = (ViewWide / oView.Width) If DrawingScale < 1 Then -> let's say this is 0.35 DrawingScale = DrawingScale ^ -1 -> then this is 2.86 inc = .25 -> why is this here? DrawingScale = Round(Round(DrawingScale, 2) / inc) * inc ---> why is this: (.../ inc) * inc
I would expect something like this:
DrawingScale = Round(Round(DrawingScale, 2) , inc) -> I would expect something like this but that makes no sense oView.ScaleString = "1/" & DrawingScale
Can somebody please clarify that line of code?
Tom
Solved! Go to Solution.