Posts: 136
Threads: 31
Joined: Nov 2005
I'd like to send ahead that this note is mainly for those of you who had the pleasure to read Joseph Horns book "HP-71 Basic Made Easy". I'm currently trying to understand the beautiful program MAKELEX in that book on page 133 and encountered a problem in line 60
60 A=HTD(ADDR$('DUMMY')) @ A1=A @ P$=RPT$("-",16)
where in the last entry the command (?) RPT$("-",16) is not recognized by the machine (and not by me either). So, I guess this is a "typo" (or did I miss something?). Does anyone know what the correct entry should be? I'd really like to see this fascinating little program run ... :-)
Juergen
Posts: 1,841
Threads: 54
Joined: Jul 2005
$'=RPT$($pattern,n)
where $pattern is repeated n times, which gives $'.
Example: R$=RPT$("ABC",4)
Afterwards R$="ABCABCABCABC"
It seems you need the small HP-71 LEX file called STRINGLX,
which adds some nice string manipulation functions.
If the above example is the only occurence of RPT$,
you can substitute it with a string of 16 '-'.
Regards,
Raymond
Posts: 136
Threads: 31
Joined: Nov 2005
Many thanks for the explanation, Raymond! I'll try it out tonight and hopefully will see the gem finally run :-)
B.t.w., do you know any source where I could find the LEX-file STRINGLX you mentioned?
Regards, Juergen
Posts: 1,841
Threads: 54
Joined: Jul 2005