>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