Strip a set of characters from a string: Difference between revisions
Content added Content deleted
(Strip a set of characters from a string in Run BASIC) |
(Strip a set of characters from a string in BASIC256) |
||
Line 733: | Line 733: | ||
See also: [[#Liberty BASIC|Liberty BASIC]], [[#PureBasic|PureBasic]] |
See also: [[#Liberty BASIC|Liberty BASIC]], [[#PureBasic|PureBasic]] |
||
=={{header|BASIC256}}== |
|||
<lang BASIC256>function stripchars(texto, remove) |
|||
s = texto |
|||
for i = 1 to length(remove) |
|||
s = replace(s, mid(remove, i, 1), "", true) #true se puede omitir |
|||
next i |
|||
return s |
|||
end function |
|||
print stripchars("She was a soul stripper. She took my heart!", "aei")</lang> |
|||
=={{header|BBC BASIC}}== |
=={{header|BBC BASIC}}== |