JdV Active Member Licensed User Longtime User May 24, 2019 #1 Hi It would be good if the IDE could list/suggest object names when creating event subs. For example, in this app it could suggest MyButton_Click for the complete sub name. Alternatively it could make suggestions when the part before the event name is being typed: Regards Joe
Hi It would be good if the IDE could list/suggest object names when creating event subs. For example, in this app it could suggest MyButton_Click for the complete sub name. Alternatively it could make suggestions when the part before the event name is being typed: Regards Joe
jimmyF Active Member Licensed User Longtime User May 24, 2019 #2 This is a good read: https://www.javatpoint.com/java-naming-conventions or this: https://en.wikipedia.org/wiki/Naming_convention_(programming) btw, if ANY IDE in ANY language suggested I use 'My' as a control prefix my head would explode. Just sayin...
This is a good read: https://www.javatpoint.com/java-naming-conventions or this: https://en.wikipedia.org/wiki/Naming_convention_(programming) btw, if ANY IDE in ANY language suggested I use 'My' as a control prefix my head would explode. Just sayin...
AnandGupta Expert Licensed User Longtime User May 24, 2019 #3 jimmyF said: btw, if ANY IDE in ANY language suggested I use 'My' as a control prefix my head would explode. Click to expand... This bad habit crept on us, after MS started naming 'My Computer' , 'My Places' etc. They got rid of it, but we are still in that mind state. Regards, Anand
jimmyF said: btw, if ANY IDE in ANY language suggested I use 'My' as a control prefix my head would explode. Click to expand... This bad habit crept on us, after MS started naming 'My Computer' , 'My Places' etc. They got rid of it, but we are still in that mind state. Regards, Anand
JdV Active Member Licensed User Longtime User May 24, 2019 #4 Regardless of what the button is called it would be good to have the name suggested when creating the event sub.
Regardless of what the button is called it would be good to have the name suggested when creating the event sub.
jimmyF Active Member Licensed User Longtime User May 24, 2019 #6 It just would get so complicated. Imagine 24 buttons, 2 combo boxes, a list view, 25 edittexts, 3 switches, etc., etc. It just does not seem practical at all. just my 1.6¢ (2¢ US)
It just would get so complicated. Imagine 24 buttons, 2 combo boxes, a list view, 25 edittexts, 3 switches, etc., etc. It just does not seem practical at all. just my 1.6¢ (2¢ US)
JdV Active Member Licensed User Longtime User May 24, 2019 #7 I don't see why it wouldn't be practical. Variable names are already suggested by the IDE when typing:
I don't see why it wouldn't be practical. Variable names are already suggested by the IDE when typing:
klaus Expert Licensed User Longtime User May 24, 2019 #8 jimmyF said: Imagine 24 buttons, 2 combo boxes, a list view, 25 edittexts, 3 switches, etc., etc. Click to expand... My Button names begin with btn. My Labels names begin with lbl. My EditText names begin with edt. etc. So when I write 'btn' it would suggest only my Buttons, writing more characters it would filter. Like anywhere in the code!
jimmyF said: Imagine 24 buttons, 2 combo boxes, a list view, 25 edittexts, 3 switches, etc., etc. Click to expand... My Button names begin with btn. My Labels names begin with lbl. My EditText names begin with edt. etc. So when I write 'btn' it would suggest only my Buttons, writing more characters it would filter. Like anywhere in the code!
jimmyF Active Member Licensed User Longtime User May 24, 2019 #9 klaus said: So when I write 'btn' it would suggest only my Buttons, writing more characters it would filter. Click to expand... That's true. I hadn't considered that aspect. I name them in a similar manner. In fact, it really does make sense.
klaus said: So when I write 'btn' it would suggest only my Buttons, writing more characters it would filter. Click to expand... That's true. I hadn't considered that aspect. I name them in a similar manner. In fact, it really does make sense.