Joberry
5 years agoOccasional Contributor
Invalid Bitmap using Legacy OCR
I have a number of application fields (Uniface unitext), They contain text but Testcomplete does not expose the wText (It appears unable to recognose any of the field content, although all properties...
- 5 years ago
Hi,
> picObj = FormObj.Windows("UniText","",VarIndex).picture
Unless it is a typo in the post, picObj must be Set :
Set picObj = FormObj.Windows("UniText","",VarIndex).picture
Does this help?
Otherwise, I did not spot anything wrong in your code sample and you may ask Support directly via the https://support.smartbear.com/message/?prod=TestComplete form.
One more possible approach is to:
-- select all text in a field;
-- copy it to the clipboard (via the <obj>.Keys("^c") call)
-- assign to script variable (e.g. aFieldVal = Sys.Clipboard);
-- use this script variable for checkpoint.
Note: as clipboard is a shared resource, it is recommended to assign its value to the script variable as soon as possible to avoid possible overwrite.