Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global variables with Reports for testing - how
Message
De
31/08/1999 00:09:54
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00259501
Message ID:
00259532
Vues:
18
Steve

I ended up creating the PUBLIC variables in INIT of the form that acts as my report menu... this is where the reports are actually called from. That seems to work and I just have to watch the TESTING stages for the 2nd form that controls the info collection for the report.

Basically the "BUTTON" with the report name does something like this via the CLICK....

LOCAL pRun
DO FORM timepro\repinfo WITH "Client Master","F" TO pRun
if pRun=1
REPORT FORM timepro\clientmaster PREVIEW FOR firmid=gFirmid
endif

NOTE: gFirmId is one of my public variables.

I did try switching that PUBLIC to PRIVATE I received an error in the info form saying the variable was not declared. Based on what you said, shouldn't it have been?




>>I need to pass an ID and 2 dates from a form (used to input this information) to be used in a report call... The only way I can figure to get more than one variable from a form is by using a set of global variables.
>>
>>I realize I can declare the global variables in my "MAIN" application and that will work well when I am running the "built" application. But if I do this... how do I test the application as I am developing the various forms and reports from the Project Manager? These global variables are NOT defined during this stage, correct?
>>
>>Suggestions?
>
>You can create the variables in the Command Window when you want to test outside the application. However, you don't need global variables. You can declare them Private in the method that issues the REPORT FORM command. They will be available to the report but will go away when the method ends.
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform