Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i VBA] How to determine a form control's object name?

$
0
0

Thanks for the pointer Jon, I hadn't considered an empty string situation

Couple of questions regarding your example out of curiosity

  1. Why double, as I am dealing with typed values of 0 to 255, is there any reason not to define number as integer or long?
  2. Should line 4 read:
number = CDbl(.Value)

Maybe I'm trying to be too clever and yes of course I could write it as Jan had suggested (thanks btw).

I was merely wondering if there was a method to determine the control name from the event but ultimately doing so isn't really that important in VBA as if the control is renamed in the designer, the control even isn't automatically renamed like it would be in visual studio and I would have to rename the controls event anyway.

Thanks again for the advice


Viewing all articles
Browse latest Browse all 7260


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>