Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
addressing sequentially named objects
I am currently working in CBuilder 4, but I suppose the following question/concept will apply to any version.
When dropping a new object onto a form, (eg. a label) CBuilder automatically names it, with the object type and a number, (eg. label1)
When more objects are dropped, the object numbers are sequentially incremented (label2, label3, label4, etc)
Now, if I wanted to modify a common field in a whole bunch of objects (say label1 to label10) using a loop, how would I address these objects?
0 · ·