Hi!
So I'm trying to move our vba scripts from old v8i to Connect edition. Most of the things work just fine but when I'm trying to run a script which is using
Private Declare PtrSafe Sub mdlDialog_completionBarUpdate Lib "stdmdlbltin.dll" (ByVal dbP As Long, ByVal msgText As String, ByVal percentComplete As Long)Private Declare PtrSafe Function mdlDialog_completionBarOpen Lib "stdmdlbltin.dll"(ByVal messageText As String) As LongPrivate Declare PtrSafe Sub mdlDialog_completionBarClose Lib "stdmdlbltin.dll" (ByVal dbP As Long)
Microstation gives me an error telling me that it didnt find an entrypoint for mdlDialog_completionBarOpen in stdmdlbltin.dll .
mdlDialog_completionBarOpen
stdmdlbltin.dll
Usually I would have looked into the mdl documentation and would hopefully find some Declare statements at the bottom of the page telling me that there is another lib or that I have used wrong types. But I couldn't find the mdl docs (which makes sense as mdl is gone, right?).
Inside the MicrostationAPI documentation I found the function so I know it still exists. So my question is: which Lib should I use for Declare in VBA? Or better: how would I be able to look that up by myself? Or if it is just the wrong types: how could I look up the argument and return types that VBA Declare is expecting for each function?
As always I would be really glad if someone could help me with that stuff.
RegardsStephan
Here's a VBA progress bar that may relieve the stress!
Regards, Jon Summers LA Solutions
Answer Verified By: Stephan L.
Hi Jon,
thank you very much for that progress bar! I will use that one instead or drop the whole feature at all.