how to automatically increment an indexing variable

  • Thread starter CraigLearningCSharp
  • Start date
C

CraigLearningCSharp

I would like to have a variable which automatically indexes ever time I add a
new group.

For Example, I have a repeating group of text boxes representing people:
[(Name),(Age),(sex)]. Each time I add a new 'people group' I'd like to have
an index appear to it that tells me the number....just like the row/line
number values in excel.

Now, my person would look like [(index),(Name),(Age),(sex)]. Each time I add
a new person, the index will increment.

I can not figure out how to do this?
 
M

Madhuri Nishanker Rao

Hi

You need to do the following step to index a row in repeating section

1. Open the form in design mode
2. Place the cursor where you want the Index to be displayed in repeating
section
3. Add ‘Expression box’ control

Result: ‘Insert Expression box’ window is displayed

4. In ‘XPath’ text box type ‘position()’
5. Click ‘Ok’
6. Save and close the form
 
M

Madhuri Nishanker Rao

Hi
You need to do the following step to index a row in repeating section

1. Open the form in design mode
2. Place the cursor where you want the Index to be displayed in repeating
section
3. Add ‘Expression box’ control

Result: ‘Insert Expression box’ window is displayed

4. In ‘XPath’ text box type ‘position()’
5. Click ‘Ok’
6. Save and close the form
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top