http://translate.google.it/?hl=it&tab=wT#
I enclose two dgn 1) dgn with macro run 2) no macro dgn also attach macros I want the macro to include cells that are at minimum distance (set to 10 m). as he now takes all the cells. the if statement distmincalc <distmin not work or something I'm wrong. Programmer does not have anything I can do I studied in "Learning MicroStation VBA" and copied examples. also add that I know are English thanks to those who give me a hand
blumax57
You have used an incorrect variable name "distmincal" in your IF statement
If (distmincal < distmin) Then
It is undefined and will return a value of zero (0) and will be < distmin every time
The variable name should be "distmincalc", so the line should be
If (distmincalc < distmin) Then
Seems to work OK when I change that line
Also
I notice you had a counter line
i = 1 + 1
I think it should be
i = i + 1
Hope this helps
Regards
Ian Turner
thanks a lot
use OPTION EXPLICIT to avoid undefined variables
Frank
since 1985: GIS, CAD, Engineering (Civil) Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads, HHK Geograf, IBr DAVID] : Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML][direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)
A LITTLE LATE BUT I UNDERSTAND :)
Frank_Klein said:use OPTION EXPLICIT to avoid undefined variables
blumax57 said:A LITTLE LATE
There's no time limit implied by your question. A response of four or five days including a weekend is OK. Be grateful!
You can read more about Option Explicit here, and how to make it the default setting in the VBA Interactive Development Environment (IDE).
Regards, Jon Summers LA Solutions
http://translate.google.it/
I was not referring to the answer "late" but I understand that "late" thanks
good morning I wanted to ask you something
I like "progress bars" seen at the link http://www.la-solutions.co.uk/content/MVBA/MVBA-ProgressBar.htm
Click the icon and draw a ProgressBar on yourUserForm
UserForm
does not work may be the operating system?
win 7
I attach the error
This is a Microsoft issue. When you follow the instructions to add Addtional Controls to your UserForm, what Microsoft Progress Bar controls do you see?
I uploaded 2 macro:
progressbar and my macro macro
- when I insert the control in my macro gives me error
- when I insert the control in userform LASolution ok
see attached images
thanks
I just tried it with Microsoft ProgressBar v5 with no problem (see screenshot). My computer's operating system is Windows 7 Pro 64-bit.
What version of Windows are you using?