Post Reply 
Best Way to Strip Traling Letter?
03-21-2017, 03:07 AM (This post was last modified: 03-21-2017 03:07 AM by toml_12953.)
Post: #7
RE: Best Way to Strip Traling Letter?
(03-20-2017 08:54 PM)Didier Lachieze Wrote:  Another way to do it :
Code:
T:=U(1,DIM(U)-(RIGHT(U,1)=="S"))

I like it! It's elegant and slightly obscure depending on the fact that a test for equality returns 1 if true. I wasn't aware you could extract substrings using an indexing scheme like that without using string functions (it's the same method used in ISO Full BASIC). This will simplify my programs considerably. Thanks!

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Best Way to Strip Traling Letter? - toml_12953 - 03-21-2017 03:07 AM



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