Forum Discussion
MulgraveTester
Frequent Contributor
When using Text Recognition it is necessary to piece back together the text that the field displays because they are stored as separate entities "02", ":", "34", " ", "PM". Here is my code that returns the string displayed in a text field:
function timeText(fieldObj)
'Returns the text string displayed in a time field object
timeText = ""
for each textObj in fieldObj.findallchildren("Name", "TextObject*")
timeText = textObj.text & timeText
next
end function
There has to be a better way than using text recognition
MulgraveTester
9 years agoFrequent Contributor
Woops. It is also necessary to sort the text objects from left to right because they can be can come in any order. See it gets messy using text recognition.