HP Forums
How to clear a list in a program? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: How to clear a list in a program? (/thread-4286.html)



How to clear a list in a program? - ThomasA - 07-03-2015 08:26 AM

Hello,
I am using the lists L1 and L2 in a program.
Is there a way to clear the lists within the program, so that
L1 = {} and L2={}? I just don't want to do that by hand every time I run the program.

Thomas


RE: How to clear a list in a program? - salvomic - 07-03-2015 08:43 AM

(07-03-2015 08:26 AM)ThomasA Wrote:  Hello,
I am using the lists L1 and L2 in a program.
Is there a way to clear the lists within the program, so that
L1 = {} and L2={}? I just don't want to do that by hand every time I run the program.

Thomas

something like this?
L1:= {};
L2:={};

Salvo


RE: How to clear a list in a program? - ThomasA - 07-03-2015 12:08 PM

Hi Salvo,
thank you, it works - sometimes the simplest way is the hardest to find!

Thomas


RE: How to clear a list in a program? - salvomic - 07-03-2015 02:32 PM

(07-03-2015 12:08 PM)ThomasA Wrote:  sometimes the simplest way is the hardest to find!

Thomas

I agree! Smile