Posted by a ceTe Software moderator
Hello,
The most likely reason the Count property is returning the value one where you have two fields txt.1 and txt.2 is because you are accessing only the container field. You have to use the ChildFields.Count property on the "txt" field and it will return the correct number of fields (i.e. two). In order to access any form field you have to use its full name.
The sample code below will return the count of the child fields:
Sample Code:
MyDocument.Form.Fields.Item("txt").ChildFields.Count
Thanks,
ceTe Software Support Team