I am trying to select the text in a field that is tied to a formDataSource. I am using the Enter method of the field to apply the selection. The code looks like this code block below. The method does get executed, but nothing happens. If I Select all from the context menu, or hit Ctrl + A, the text is selected.
public void enter()
{
super();
int TxtLen = strLen(SCTable_TypeCode.valueStr());
SCTable_TypeCode.setSelection(0, TxtLen);
SCTable_TypeCode.setFocus();
}
What am I missing on this?
Regards,
Shawn