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

Hi Barry,

[quote user="Barry Lothian"]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 [/quote]

It's just my subjective opinion, but as I wrote in my previous post, to depend on contros name is risk and wrong idea. There is not any reason (well, I can imagine some rare scenarios) to use such approach. Using with type references to control(s) is better and more flexible.

A problem of VBA forms is that there is no commonly accepted and recommended pattern how a form code should be implemented. Probably for all other GUI systems (MFC, WinForms, WPS and also multiplatform systems like Qt etc.) always some recommended patter exist (MVP for WinForms, MVVM for WPFS, MVC for many others). And unfortunately how to create a form properly is not usually discussed in tutorials, so it's often situation where the whole application code is inside a form and business logic is inside Click sub :-(

With regards,

  Jan


Viewing all articles
Browse latest Browse all 7260


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