Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCATTER MEMVAR
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00158224
Message ID:
00158574
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform