|
We iterate through each of the top level fields. For each field
we set the value of the field to be equal to the value of the
name.
[C#]
string[] theNames = theDoc.Form.GetFieldNames();
foreach (string theName in theNames) {
Field theField = theDoc.Form[theName];
theField.Value = theField.Name;
}
[Visual Basic]
Dim theNames As String() = theDoc.Form.GetFieldNames()
Dim theName As String
For Each theName In theNames
Dim theField As Field = theDoc.Form(theName)
theField.Value = theField.Name
Next
|