Sergi Gàmiz Ribelles
Sergi,
I don’t think you can clear a variable from memory in MapBasic. I’m pretty sure the allocated memory is released when the sub procedure completes (or module if it is defined outside of a sub procedure). I assume global variables remain in memory until the program terminates. Perhaps someone with a bit more knowledge might be able to clarify whether this is the case or not; I’m working off assumptions here!
HTH,
--
Shows how much I know. =(
Sergi Gàmiz
Ribelles (627481954)
REGS DE CATALUNYA S.A.
(www.regsa.cat)
Unitat de Promoció de Regadius i Concentració
Parcel·lària
c/General
Brito, 6, 5è
25007
Lleida
tel.
973222838 fax 973222627
sga...@regsa.cat
De: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] En nombre de Erin Comparri
Enviado el: martes, 26 de abril de 2011 19:08
Para: mapi...@googlegroups.com
Asunto: Re: [MI-L] How to Clear variables
Sounds like you've dim'ed some variables at the wrong scope. Move the appropriate Dim statement(s) into the routine called recursively.
Spencer
--