Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable not found
Message
 
 
À
20/02/2001 14:57:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00476708
Message ID:
00477767
Vues:
38
>the report runs off the main application, but it shouldn't matter because it is in its own executable. The user chooses a report to run from the listbox and then a new executable is called that gathers the data and runs the report. Since it is a new exe, I think it should run in a new datasession, but I am not for certain.

If this new exe doesn't use forms with Private DS or create Session object, I guess, it runs in Main application DS. So, perhaps, it's a source of the problems. Theoretically, it should not matter, if it runs in Private or Default DS, if the right alias is selected just before Report Form command. However, as life teaches us, it's not always true. In a case of Grid in main application and report form command in child application, it doesn't work correctly, if they are run in the same DS (I think, it doesn't matter, do you compile .exe or .app). If they are run in separate DS, there is no error.

So, the suggested cure could be create a session object in the second executable (if you're using VFP6.0 SP3 or 4). At least, it should solve the problem.

Also if you can create an easy to reproduce test, it would help.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform