I have a subform witch allows the user to add or delete another instance. What I would like in this subform is a "record number". For example, in the existing subform, I would like a text or numeric field to be "record 1". If the user creates a new subform, I would like it to dynamically say "record 2" and so on for each subform added so the user does not have to remember what record they may be on if they have several. I am also wondering with this how the numbering would work or if there is a choice? For example, if there are three instances of the subform, numbered 1, 2 and 3 and the user deletes #2, will or can number 3 renumber itself to #2?
I have a feeling there is a relatively simple solution to this but do not know how to do this or where to look for a solution.
Any help would be greatly appreciated!
In the initialize event, I put:
this.rawValue=Recommend.instanceManager.count;
This works exactly how I want it to that when another subform is added, it increments the number by 1 however, if I remove a subform instance, the numbering does not renumber for example, if I have subform 1, 2 and 3, remove 2, subform 3 does not renumber to 2 but stays at 3.
Is there a way these can renumber correctly?