Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close tables upon closing report.
Message
 
 
À
19/08/2002 18:04:09
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00691133
Message ID:
00692135
Vues:
24
Thanks....that should work well!


>I've used a technique before where you associate a Cursor or Object, etc. with a property on the Form and refer to it that way. It will continue to exist as long as the Form does:
>
>Try something like:
>
>
>THISFORM.AddProperty("Mycursor","Cursor1")
>Select * from Tablename Where Field=Something into Cursor (THISFORM.MyCursor)
>
>
>...and refer to this cursor (you can make as many as you like) within the Report and when the Form is finally closed all Cursors will go with it.
>
>HTH,
>
>-Irv.
>
>
>I'm not sure how to do that since the cursor is created by the calling program's ontimer event. If there's a way to pass that cursor to a report environment which would hold the file until report closure, that would be perfect. Is there a way to do that?
>>
>>
>>>Do you utilize the DE of the Report itself? Either through code or designer, maybe this would hold the cursor reference longer...
>>>
>>>HTH,
>>>
>>>-Irv.
>>>
>>>>I have a report that is running with a cursor built from a calling program. However, the calling program is on a timer and needs to run the report with the "nowait" clause. I added a method call on the summary "on exit" band to close the table. However, it appears that the cursor is being closed before the report. Is this normal behavior? If so, how can I ensure that the cursor stays open until completion of a report (either screen or printing to printer)?
>>>>
>>>>Thanks in Advance!
Steve Howie, owner
DaSH Technology
Denver, CO
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform