Purge all single letter variables A through Z?
2008-08-10 by arthurford4142

Yahoo Groups archive
Archive for 50g.
Index last updated: 2026-03-30 00:59 UTC
Thread
2008-08-10 by arthurford4142
2008-08-10 by Jeremy Hawdon
Hi Arthur,
The following program should do the job, provided that your directory list is a path for the final directory.
\<< WHILE DUP SIZE
REPEAT DUP HEAD EVAL TAIL 65 90
FOR k CHR “’” + OBJ\--> PURGE
NEXT
END DROP
\>>
Checksum is #5C70h. Store in home under a suitable name.
Regards, Jeremy
From: 50g@yahoogroups.com
[mailto:50g@yahoogroups.com] On Behalf Of arthurford4142
Sent: 10 August 2008 10:37
To: 50g@yahoogroups.com
Subject: [50g] Purge all single
letter variables A through Z?
Is there a quick and easy way to purge these
variables? The Filer is
easy but it's not quick to use. My goal is to purge A - Z just prior
to a new calculation. Perhaps a short program? (Hit VAR, then the
appropriate soft menu key, then do the calculation. ) Here's my scenario:
Mode is set to HEADER: 2. The 2nd line displays {HOME TEST}, where
TEST is a subdirectory of HOME. I want to purge A - Z in both TEST and
HOME by hitting VAR and the appropriate soft menu key. My programming
skills are at the novice level, limited to simple conversions like
Centigrade to Fahrenheit.
Thanks, Arthur
2008-08-12 by arthurford4142
--- In 50g@yahoogroups.com, "Jeremy Hawdon" <jeremy.hawdon@...> wrote:
>
> Hi Arthur,
>
>
>
> The following program should do the job, provided that your
directory list
> is a path for the final directory.
>
>
>
> \<< WHILE DUP SIZE
>
> REPEAT DUP HEAD EVAL TAIL 65 90
>
> FOR k CHR "'" + OBJ\--> PURGE
>
> NEXT
>
> END DROP
>
> \>>
>
>
>
> Checksum is #5C70h. Store in home under a suitable name.
>
>
>
> Regards, Jeremy
>
>
>
> _____
>
> From: 50g@yahoogroups.com [mailto:50g@yahoogroups.com] On Behalf Of
> arthurford4142
> Sent: 10 August 2008 10:37
> To: 50g@yahoogroups.com
> Subject: [50g] Purge all single letter variables A through Z?
>
>
>
> Is there a quick and easy way to purge these variables? The Filer is
> easy but it's not quick to use. My goal is to purge A - Z just prior
> to a new calculation. Perhaps a short program? (Hit VAR, then the
> appropriate soft menu key, then do the calculation.) Here's my
scenario:
> Mode is set to HEADER: 2. The 2nd line displays {HOME TEST}, where
> TEST is a subdirectory of HOME. I want to purge A - Z in both TEST and
> HOME by hitting VAR and the appropriate soft menu key. My programming
> skills are at the novice level, limited to simple conversions like
> Centigrade to Fahrenheit.
>
> Thanks, Arthur
>
2008-08-12 by Jeremy Hawdon
Hi Arthur,
Right shift 0 should work (if you are in alpha mode) bout OBJ\--> is a command found in the TYPE menu (left shift PRG TYPE). The checksum is produced if you put a copy of the program on the stack and press left shift PROG MEM BYTES, it is useful for checking that you have entered the program correctly.
If you always wish to call this program to clear all single letter variables ‘visible’ from a sub-directory, you could store it under a suitable name in home and add PATH as the first instruction in the program. Then when it is called from the sub-directory(perhaps using the custom menu) there will be no need to put anything on the stack.
Jeremy
From:
50g@yahoogroups.com [mailto: 50g@yahoogroups.com ]
On Behalf Of arthurford4142
Sent: 12 August 2008 09:52
To: 50g@yahoogroups.com
Subject: [50g] Re: Purge all
single letter variables A through Z?
Thanks Jeremy,
Still struggling with this. Just noticed a tick mark between the
quotation marks; I swear I didn't see that before this reply. Not sure
about the "-->", if right shift 0 doesn't work I'll try the right
shift CHARS one. I'm familiar with checksum, but have not run across
it in relation to the 50g. I'm totally stumped on that one.
Thanks, Arthur
--- In 50g@yahoogroups. com,
"Jeremy Hawdon" <jeremy.hawdon@ ...> wrote:
>
directory list
> Hi Arthur,
>
>
>
> The following program should do the job, provided that your
> is a path for the final directory.
[mailto:50g@yahoogroups. com] On
Behalf Of
>
>
>
> \<< WHILE DUP SIZE
>
> REPEAT DUP HEAD EVAL TAIL 65 90
>
> FOR k CHR "'" + OBJ\--> PURGE
>
> NEXT
>
> END DROP
>
> \>>
>
>
>
> Checksum is #5C70h. Store in home under a suitable name.
>
>
>
> Regards, Jeremy
>
>
>
> _____
>
> From: 50g@yahoogroups. com
> arthurford4142
scenario:
> Sent: 10 August 2008 10:37
> To: 50g@yahoogroups. com
> Subject: [50g] Purge all single letter variables A through Z?
>
>
>
> Is there a quick and easy way to purge these variables? The Filer is
> easy but it's not quick to use. My goal is to purge A - Z just prior
> to a new calculation. Perhaps a short program? (Hit VAR, then the
> appropriate soft menu key, then do the calculation. ) Here's my
> Mode is set to HEADER: 2. The 2nd line displays {HOME TEST}, where
> TEST is a subdirectory of HOME. I want to purge A - Z in both TEST and
> HOME by hitting VAR and the appropriate soft menu key. My programming
> skills are at the novice level, limited to simple conversions like
> Centigrade to Fahrenheit.
>
> Thanks, Arthur
>