Post Reply 
(50g) String inside string manipulation, UserRPL
10-15-2016, 01:56 PM (This post was last modified: 10-16-2016 10:31 AM by Vtile.)
Post: #1
(50g) String inside string manipulation, UserRPL
I have spend too many hours to find a way to make string inside to the string in UserRPL program, which did seem impossible, since ie. all string manipulation commands refuges to create such (because of the way stack editors etc. works), but eventually I did find a way to do it. This allows me finally .. after tens of hours of trying to make a parser for a choose command. *happy*

For someone that might given up hope, here it is (thx. Gerald H. for giving more elegant solutions).

Code:
34 CHR "Your existing string to be wrapped in extra quotation marks" 34 CHR + +

First we need to create a empty string, to do so press:
[RShift] [*] [Enter]
There is now empty string object in stack, next press
[DOWNARRY]
To enter editor, press following:
[RSHIFT] [*] [DEL] [ENTER]

Now in stack we have object """
store in to variable 'FOOLSTR'


Now you can also make a program that make a string of strings and other more "synthetic" programs.

Hopefully this is usefull.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(50g) String inside string manipulation, UserRPL - Vtile - 10-15-2016 01:56 PM



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