Welcome Guest Search | Active Topics | Sign In | Register

Field Type??? Options
Bernhard Queißer
Posted: Sunday, December 11, 2022 3:31:34 AM
Rank: Newbie
Groups: Member

Joined: 8/6/2021
Posts: 5
Hi,
In the context help I get properties of the field types displayed, how can I determine which type a form field has. I am use EO.PDF 2021

If DOC1.Fields(Lab).ReadOnly = False Then
IF DOC1.Fields(lab).Type=?????????????????????????????????????????
DOC1.Fields(Lab).Value = "X"
End if
End if

Thank you for help
eo_support
Posted: Monday, December 12, 2022 11:27:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,103
Hi,

You would check the runtime type of the field object against one of the derived types. For example, the following code checks if the field is a PdfTextField

Code: Visual Basic.NET
If TypeOf DOC1.Fields(Lab) Is EO.Pdf.PdfTextField Then
    ...
End If


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.