I have a subform named Scripts1 on a TabPage. It is the placed at the top and it did take the focus after using tab key twice in version 2.5.2 as expected and executed the form Entry command as mentioned under.
After installing version 2.5.3, after using two tabs the form entry command is not executed, however the programming in the first element of the subform on element exit event is executed!! Obviously the first record in the subform has taken the focus but not executing the form entry command. The sure way to make this command executed is to double click the first record. Execution of the On form Enter commands are working fine for the 2nd records onwards. It is only the record number 1 exhibiting this behavior.
I guess, it is my expectation of first record of the subform taking focus and executing on form Enter commands on hitting tab key twice is not working.
On form Entry Event of Scripts1 (subform)
var vFormMode as int
If @standalone ( ) = 0 or vFormMode = FORM_VIEW_TYPE_Table then
{
WarningLevel (0)
Visibility (U, 0)
Visibility (RecNumber, 0)
Visibility (Date1, 0)
Visibility (MCode, 0)
WarningLevel (0)
ThrowFocus (Medicine)
}
Else if @Standalone ( ) = 1 then
{
Visibility (U, 1)
Visibility (RecNumber, 1)
Visibility (Date1, 1)
Visibility (MCode, 1)
}
vFormMode = @FormViewType("Scripts1" )
if(vFormMode = FORM_VIEW_TYPE_FORM)
{
Visibility (Note, 1)
}
else if vFormMode = FORM_VIEW_TYPE_Table
{
Visibility (Note, 0)
}
ForceRedraw ( )
Can someone suggest any work around and changing the code to make it work without using the mouse?
7 out of 10 times I have to delete the first record and since the warninglevel (0) is not executed, it throws the warning message that I want to avoid.