11-05-2019, 01:34 PM
I use Android Emu 48,a great application.
I have the following HP50G program
« 100 "abc" 200 "->def"» 'P1' STO.
I want to see, in a doc like Word, the full steps of P1.
For that, I have to copy the content of P1 to (Word) doc.
Normally easily done if it were
« 100 200 » : I would change the prog into a string
"100 200" and use the Copy-to-stack of Emu48 and then Paste (Contr+V) in the (Word) doc.
With « 100 "abc" 200 "», however, the inner strings of P1 does not help and allow it ss it is.
1) First, I have to put P1 in the stack.
2) Edit it
3) Use the REPLACE command of Edit.
4) And replace all the " characters by, for example, $,
to get « 100 $abc$ 200 $->def$».
5) Then I can convert this new program into the required string "« 100 $abc$ 200 $->def$»" to use the copy-stack command of Emu48 and copy the above string in my (Word) doc.
I want a first program P.Prog->String of the kind
« EDIT...
search for sign " and replace by...
search for sign - > and replace by...
search for all special signs not taken into account during the transfer and replace them by...
»
(working as follows:
« 100 "abc" 200 "->def"»
ENTER
P.Pring->String
EVAL or ENTER
« 100 $abc$ 200 $#def$»)
and a 2nd one, P. String->Prog. Bck, to convert back
"« 100 $abc$ 200 $#def$»" into
« 100 "abc" 200 "->def"».
Ideally, both programs should convert all the strange characters in one execution ; and better : use the prog once for all the variables in a directory.
Could somebody help me?
I thank you in advance for your valuable contribution.
Regards,
Gil
I have the following HP50G program
« 100 "abc" 200 "->def"» 'P1' STO.
I want to see, in a doc like Word, the full steps of P1.
For that, I have to copy the content of P1 to (Word) doc.
Normally easily done if it were
« 100 200 » : I would change the prog into a string
"100 200" and use the Copy-to-stack of Emu48 and then Paste (Contr+V) in the (Word) doc.
With « 100 "abc" 200 "», however, the inner strings of P1 does not help and allow it ss it is.
1) First, I have to put P1 in the stack.
2) Edit it
3) Use the REPLACE command of Edit.
4) And replace all the " characters by, for example, $,
to get « 100 $abc$ 200 $->def$».
5) Then I can convert this new program into the required string "« 100 $abc$ 200 $->def$»" to use the copy-stack command of Emu48 and copy the above string in my (Word) doc.
I want a first program P.Prog->String of the kind
« EDIT...
search for sign " and replace by...
search for sign - > and replace by...
search for all special signs not taken into account during the transfer and replace them by...
»
(working as follows:
« 100 "abc" 200 "->def"»
ENTER
P.Pring->String
EVAL or ENTER
« 100 $abc$ 200 $#def$»)
and a 2nd one, P. String->Prog. Bck, to convert back
"« 100 $abc$ 200 $#def$»" into
« 100 "abc" 200 "->def"».
Ideally, both programs should convert all the strange characters in one execution ; and better : use the prog once for all the variables in a directory.
Could somebody help me?
I thank you in advance for your valuable contribution.
Regards,
Gil