Skip to main content
guest
Join
|
Help
|
Sign In
Liberty BASIC Community Wiki
Home
guest
|
Join
|
Help
|
Sign In
Wiki Home
Recent Changes
Pages and Files
Members
Home
Liberty BASIC FAQ
Contests
Tutorials
Science
Shared Code
Tips
DLLs
PublicDomainSprites
Member Pages
Links
Sandbox
Remove From String II
Edit
0
6
…
0
Tags
No tags
Notify
RSS
Backlinks
Source
Print
Export (PDF)
Change
0
of
0
Previous
Next
Older Version
Newer Version
MikeGerz
Jan 28, 2006
Highlight Changes
(
Deleted
,
Inserted
)
View WikiText
Review Changes
'
*
'
* Here is an alternative program.
'
* It's much shorter, and it also removes
'
* EVERY occurrence of the letter, not just one.
*
'
* by Michael D. Gerzevitz
* 1-28-06
*
'
*
dim x$(100)
a$=""
print "Enter a string"
input ": ";x$
[main]
l=len(x$)
print "Type a character to remove"
input ": ";r$
if r$="" then [quit]
for y=1 to l
x$(y)=mid$(x$,y,1)
if not(x$(y)=r$) then
a$=a$+x$(y)
end if
next
x$=a$
print a$
a$=""
goto [main]
[quit]
end**
Turn off "Getting Started"
Home
...
Loading...