PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → clear a variable from memory
clear a variable from memory
Iniciado por guest, 09,feb. 2015 09:52 - 6 respuestas
Publicado el 09,febrero 2015 - 09:52
Hi

Can somebody please tell me how to 'undeclare' a variable. I never had to do this before and cannot locate it the help.

I have an email structure which I need to eliminate after usage.

Thanks
Noel
Publicado el 09,febrero 2015 - 10:54
Noel

'VariableReset' is your friend.

Also 'HCancelDeclaration' for queries etc
Publicado el 09,febrero 2015 - 11:02
EmailReset() should be your friend...

Cheers,

Peter H.
Publicado el 09,febrero 2015 - 11:06
Thanks Derek and Peter
Publicado el 14,febrero 2015 - 16:44
Hello All

In terms of resetting a variable to its default value then VariableReset() does that and also emailreset() clears the values in the email structure variable, but neither of them actually remove a variable from memory so it no longer exists

Is there a function that does that ?

Regards
Al
Publicado el 14,febrero 2015 - 19:50
Hello,

Maybe there is in Windev a garbage collector like in .Net, which automaticaly clears unused objects in memory, but I doubt it...

Bart
Publicado el 14,febrero 2015 - 22:31
Hi,

Why do you want that?

IF i remember correctly memory allocation is possible. So maybe search on that ?

regards

Allard