List Commands Library for 50g
|
09-24-2017, 04:13 PM
Post: #160
|
|||
|
|||
RE: List Commands Library for 50g
(09-24-2017 03:37 PM)DavidM Wrote: I suppose it may be possible using Saturn code to isolate a given string within a list in TEMP, remove the surrounding (extraneous) list structure, compress the TEMP slot, move all slots above it to keep the chain intact, etc., but that would be a massive undertaking. Actually, this may not be as far-fetched as I thought. The Saturn routine Shrink$Any might be very useful for something like this. I don't have any direct experience with using that type of approach, but perhaps others here might have more insight. While it would only help with a single list element, I could see an approach that does the following: - MOVEDOWN the string into the starting position of the list (wiping out the list prologue) - Adjust the string length field to encompass the entire list size (including the SEMI at the end) - Shrink$Any the string to the original length, which may in fact handle the rest of the "massive undertaking" that I mentioned above. Anyone know enough about Shrink$Any to know if this is a sensible approach? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)