Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release a report var after report?
Message
From
28/04/2007 07:49:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01220767
Message ID:
01220769
Views:
16
>I have a report variable that totals a certain number (e.g. number of records printed that match a certain criteria). And since I will want this value after the report I will not check Release After Report check box.
>
>But, once I get the value of this variable, how do I release it?
>
>Would the following be enough?:
>
>
>MyRepVar = .NULL.
>
>
>Thank you for any suggestions.

Since this would still use memory (simply have a NULL value assigned), I think to completely release the variable you should use
release MyRepVar
I am not sure about the scope of report variables, i.e., when would they be released if you do nothing.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform