|
Post by tsh73 on Apr 27, 2018 11:51:41 GMT -5
This one implements initial requirements from this wishlist thread WishList::FindActually by calling it "handy" I lied. It is "handy" *only* if you need it. But my point is - this is BASIC language It has pretty standard list of basic string functions - and almost anything you need above that you can make from that within 5 minutes. If you have a need. Adding a function to the language to save 5 minute coding is really too much to ask. The only thing I changed from original task is name. I don't see it being "find". I see it doing "filter". So - a$="qwertyuiop" b$="aeiou" c$=filter$(a$,b$) 'c$ will hold "euio" print c$ wait
function filter$(src$, accept$) 'pass only characters from accept$ string filter$="" for i = 1 to len(src$) c$=mid$(src$,i,1) if instr(accept$,c$) then filter$=filter$+c$ next end function
|
|