hp 42s combining strings



#2

Trying to combine 2 strings, apparently you can have up to 15 characters in the alpha register, i seem to be able to put more (not the storage reg., only 6 in there.) What I want to do is append the 2nd string to the 1st string. I know the append function is that sideways "T" but it doesn't work in this case.


Here's my program,
01 LBL "TEST"
02 "<="
03 ARCL 10
04 "D="
05 ARCL 11
06 AVIEW
07 END

I would like the end result in the alpha register to be... <=90.0000D=10.0000
Any help thanx Shawn,,,,MeisterEister@aol.com


#3

If I recall correctly, an extra "enter" at the beginning of the string will enable the append mode.


#4

right, i know the append symbol but it doesn't work either.
thnx for the reply


#5

It works OK for me. Typed in your prog, but before each line with alpha code, I typed (Shift) ALPHA ENTER, then the text. This gave a line like this, for example:

04 |-"D="

The bar-hyphen was a single char; a T on its side as you described it. Replacing all alpha lines in this way gave exactly the output you wanted.

#6

Try this:

01 LBL "TEST"
02 "<="
03 ARCL 10
04 |-" D=" (the |- symbol is entered by pressing [ENTER] in ALPHA mode, as Andrés mentioned)
05 ARCL 11
06 AVIEW
07 END

This should work. Unless you are trying to place D=value in the lower line; if so, you'll need the Line Feed (LF) character, available at ALPHA, PUNC, down-arrow, last-softkey. Your program would look like this:

01 LBL "TEST"
02 "<="
03 ARCL 10
04 |-"LF D=" (the LF symbol is one-character wide)
05 ARCL 11
06 AVIEW
07 END
Forgive-me if this is not what you want, but it may be helpfull one day.

Cheers.

#7

thnx, 42 rulz


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime and Strings Han 6 2,294 09-20-2013, 10:18 AM
Last Post: Han
  Strings inside matrix editor on 50g Chris Smith 3 1,614 05-22-2013, 04:04 PM
Last Post: Chris Smith
  Fun things found by running strings on the 39gII emulator bhtooefr 11 3,883 05-16-2013, 12:40 AM
Last Post: Mic
  HP 39gii Help Wanted: Inputting Strings in a Program Eddie W. Shore 0 869 02-09-2013, 02:17 PM
Last Post: Eddie W. Shore
  An old trick rediscovered: combining conditional tests Dieter 2 1,366 08-12-2012, 03:42 PM
Last Post: Dieter
  42s questions and 42s vs 35s snaggs 13 5,447 09-19-2011, 02:44 AM
Last Post: snaggs
  42s: programming long strings rob 1 835 09-03-2005, 09:00 PM
Last Post: Rob
  HP49G+: How do I sent text strings to the Picture screen? Eddie Shore 1 798 04-03-2004, 02:34 PM
Last Post: Raymond Del Tondo
  Help needed for displaying strings with INFORM Karl-Ludwig Butte 6 1,844 01-02-2004, 01:41 AM
Last Post: Karl-Ludwig Butte

Forum Jump: