Post Reply 
HP50G SD card STO and RCL
12-14-2018, 10:01 PM
Post: #17
RE: HP50G SD card STO and RCL
(12-11-2018 12:36 PM)Stevetuc Wrote:  
(11-01-2014 04:51 PM)Claudio L. Wrote:  Here's what I use to backup my projects. It will backup all objects in the current directory into the SD card, into the same path where they are in HOME, each object in a different file, overwriting them if they exist. Doesn't do subdirectories, though, you have to manually enter the subdirs and run it there too.

Code:

\<< PATH TAIL "/" SWAP ADD "/" + \GSLIST VARS ADD
VARS 2. \<< RCL SWAP 3. \->TAG DUP PURGE STO 0. \>>
DOLIST DROP
\>>

Hi Claudio,

I entered the above program into my Hp50g, with the appropriate \ char substitutions. Ie \GS char(133) from CHARS.

When run in home I get the error:

ADD Error: Invalid Dimension

And on return stack:

2: "/"
1: { }

Mode is set RPN
Cas approx
Can you see whats wrong?

PATH TAIL will give you an empty list, so it can't be used at HOME without considering that as a special case (which the code does not).
The whole point of that little program is to dump an entire subdirectory into an equally named subdirectory in the SD card, so it's only meant to be used within a subdirectory.

To make it work in home a simple fix would be:

Code:

\<< PATH TAIL IF DUP SIZE THEN "/" SWAP ADD "/" + \GSLIST ELSE DROP "/" END VARS ADD
VARS 2. \<< RCL SWAP 3. \->TAG DUP PURGE STO 0. \>>
DOLIST DROP
\>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP50G SD card STO and RCL - Paul 6146 - 10-31-2014, 12:27 AM
RE: HP50G SD card STO and RCL - DavidM - 10-31-2014, 03:02 AM
RE: HP50G SD card STO and RCL - Paul 6146 - 10-31-2014, 03:42 PM
RE: HP50G SD card STO and RCL - Han - 10-31-2014, 03:47 PM
RE: HP50G SD card STO and RCL - Paul 6146 - 11-01-2014, 04:36 AM
RE: HP50G SD card STO and RCL - DavidM - 10-31-2014, 09:50 PM
RE: HP50G SD card STO and RCL - Paul 6146 - 11-01-2014, 01:51 AM
RE: HP50G SD card STO and RCL - DavidM - 11-01-2014, 05:46 AM
RE: HP50G SD card STO and RCL - Paul 6146 - 11-01-2014, 03:18 PM
RE: HP50G SD card STO and RCL - DavidM - 11-01-2014, 04:41 PM
RE: HP50G SD card STO and RCL - Paul 6146 - 11-01-2014, 05:24 PM
RE: HP50G SD card STO and RCL - DavidM - 11-01-2014, 07:02 PM
RE: HP50G SD card STO and RCL - Claudio L. - 11-01-2014, 05:06 PM
RE: HP50G SD card STO and RCL - Claudio L. - 11-01-2014, 04:51 PM
RE: HP50G SD card STO and RCL - Stevetuc - 12-11-2018, 12:36 PM
RE: HP50G SD card STO and RCL - Claudio L. - 12-14-2018 10:01 PM
RE: HP50G SD card STO and RCL - Stevetuc - 12-15-2018, 02:32 PM



User(s) browsing this thread: 1 Guest(s)