Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Workarea changes in the middle of a method
Message
De
13/01/2009 07:20:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01373118
Message ID:
01373124
Vues:
18
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform