how to clear data from both base Workspace and function workspace

how to clear data from both base Workspace and function workspace

Post by Bram » Sat, 07 Oct 2006 12:31:47


All data in the function workspace is automatically cleaned up after the function is finished. Data in the base workspace can be cleared with the 'clear variable' command.
 
 
 

how to clear data from both base Workspace and function workspace

Post by patha » Sat, 07 Oct 2006 15:36:22

Hi,
I am running mfile full of data from a function, As a result of
which the data is created in both base workspace and function
workspace.
I want to clear the data from both workspace at the last step of
function, how do i do it?
can anybody help me ?
thanks in advance..
Pathan

 
 
 

how to clear data from both base Workspace and function workspace

Post by Nasser Abb » Sat, 07 Oct 2006 16:34:24


I do not understand. Are you explicitly creating variables in the workspace
when running in the function context? If no, then why do you think if you
create a variable inside a function, then it will also be created in
workspace?


When you exit a function, then all the variables it created inside the
function are gone.

To clear variables in the workspace, do help 'clear'

Nasser