Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does RELEASE clear memvar created variables?
Message
From
19/01/2001 18:14:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466060
Message ID:
00466067
Views:
13
>Hello,
>
>I was wondering if you did the command RELEASE MEMVAR would it release all the variables you created with memvar? Or must you release them individually?
>
>Thanks,
>Bryan

If you did RELEASE MEMVAR you would release a variable named MEMVAR.

You would have to release them individually, or in a list, e.g.,
RELEASE last_name, first_name, ...
Or you can get the field list before you scatter and use macro expansion to scatter them and release them, e.g.
Use mytable
** get all fields
lcFields = ""
For ji = 1 To FCount()
   lcFields = lcFields + Field(ji) + ","
EndFor
lcFields = Left(lcFields, Len(lcFields)-1)

** or you can get specific fields
** lcFields = "last_name, first_name, ..."

Scatter Fields &lcFields Memvar
** do some code
** blah, blah, blah
Release &lcFields
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform