>>Hello,
>>
>>Clicking a button on a form calls a method that creates a cursor (with SELECT FROM) which is to be the basis of a report. Somehow the selectted cursor changes to the main form cursor before the report is actually run. After that the report prints correctly. SET STEP after the query *sometimes* shows the cursor changed right after the SELECT !
>>
>>I suspected a timer might be changing workareas, which only happens once, so I set it's interval to 0 and the problem still occurs.
>>
>>What else might be causing a sudden unexplained workarea switch?
>>
>>TIA,
>>
>>Alex
>
>Do you have a grid on the form? See Forms with Grids and printing reports FAQ #15515
As a matter of fact yes, although the change is to a different cursor than the one from the grid's recordsource. The grid is the only object in the form other than the command buttons and the framework I use changes focus to it after print button is clicked, so during the process I set focus back to the command button and Voila, it now works.
This is a big help Naomi. I don't think I would have known what to do without your help. Just gave you three stars. Thank you.
I would call this a VFP bug because I can;t imagine it was voluntary, although maybe they decided to keep it a while.
Alex
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only