Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER MEMVAR
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00158224
Message ID:
00158574
Views:
14
>I still use Scatter Memvar - Gather Memvar.
>I'm trying to find a way of "Releasing" the variables that i use in any program.
>"Release m.variable" Works, the problem is that i have a lot of fields in my programs and it's not easy write one hundreds o more release m.variable.
>
>Note: SCATTER MEMVAR BLANK just put spaces or ceros in my variables, they still exist when i leave the program.

I use this program in my procedure library
FUNCTION FieldList
LOCAL cstr, ii
cStr= ''
FOR m.ii = 1 TO FCOUNT()
  cStr= m.cStr + ',' + FIELD(m.ii)
ENDFOR
RETURN SUBSTR(m.cStr, 2)
Now you just go
cStr= FieldList()
PRIVATE &cStr
SCATTER MEMVAR
* other stuff
RELEASE &cStr
Previous
Reply
Map
View

Click here to load this message in the networking platform