Strip comments from a string: Difference between revisions

Content added Content deleted
m (ANSI BASIC and BASIC256 moved to the BASIC section.)
m (→‎{{header|ANSI BASIC}}: {{works with|Decimal BASIC}})
Line 496: Line 496:
=={{header|BASIC}}==
=={{header|BASIC}}==
==={{header|ANSI BASIC}}===
==={{header|ANSI BASIC}}===
{{works with|Decimal BASIC}}
<syntaxhighlight lang="ansibasic">100 DECLARE EXTERNAL FUNCTION FNstripcomment$
<syntaxhighlight lang="basic">100 DECLARE EXTERNAL FUNCTION FNstripcomment$
110 LET marker$="#;"
110 LET marker$="#;"
120 PRINT """";FNstripcomment$("apples, pears # and bananas", marker$);""""
120 PRINT """";FNstripcomment$("apples, pears # and bananas", marker$);""""