Field object
Sets the position of a Field object. This could be useful when you want to change the Field’s appearance in Verify. You can for example change the position of data field objects (as they otherwise would have "dummy" positions in Verify.
One useful application is when you use the Document Content functionality to find and interpret words. This gives DocWord objects that can not be verified. You can copy the data to a data field object and change that objects position to the one of the DocWord object.
Below is a short snippet of code demonstrating how to user the method.
Call objWord.GetPosition (intTmpLeft, intTmpRight, intTmpTop, intTmpBottom)
Set objField = Application.Form.GetFormFieldNo(7)
If Not objField Is Nothing Then
objField.SetValueStr (objWord.GetValueStr())
Call objField.SetFieldRect(intTmpLeft, intTmpRight, intTmpTop, intTmpBottom)
End If
[ReturnValue =] Object.SetFieldRect(LeftPos, RightPos, TopPos, BottomPos)
|
Part |
Data type |
Description |
|
Object |
Object |
An object expression that evaluates to an Field object. |
|
LeftPos |
Integer |
Left position of the new framing rectangle of the Field object (in pixels). |
|
RightPos |
Integer |
Right position of the new framing rectangle of the Field object (in pixels). |
|
TopPos |
Integer |
Top position of the new framing rectangle of the Field object (in pixels). |
|
BottomPos |
Integer |
Bottom position of the new framing rectangle of the Field object (in pixels). |
The field position has to be within the document size.
The method return 0 if all is OK.