Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does RELEASE clear memvar created variables?
Message
De
19/01/2001 18:14:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00466060
Message ID:
00466067
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform