splitting long lines of code
Archiver
Posts: 46,084
I have a long line of code that I'd like to split into two (or more) lines
for readability. Is there any way to do this?
Here is a snippet of pseudocode:
*snip*
Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
blah blah blah"]
*snip*
Thanks,
--Craig
for readability. Is there any way to do this?
Here is a snippet of pseudocode:
*snip*
Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
blah blah blah"]
*snip*
Thanks,
--Craig
Comments
>I have a long line of code that I'd like to split into two (or more) lines
>for readability. Is there any way to do this?
>
>Here is a snippet of pseudocode:
>
>*snip*
>
>Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
>blah blah blah"]
>
>*snip*
>
>Thanks,
>--Craig
>
>Craig -
Just string it out in one line as long as you need to.
There is no continuation character in PBASIC.
Bruce
>>I have a long line of code that I'd like to split into two (or more) lines
>>for readability. Is there any way to do this?
>>
<SNIP>
If the only reason for breaking it is readability, why not add the broken
line as a comment:
' Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
' blah blah blah"]
(and I may even get errors because the quotes and brackets aren't closed).
Perhaps an enhancement to future versions of the compiler would be to add a
continuation character (e.g. the _ in VB)?
Original Message
From: carl@g... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=IK5gLQsCTp-LJRsET6rEP_gBohYMxnLMj8JAUhUS7oOSmZzqn0Z6DLs51an8aJps5rPX]carl@g...[/url
Sent: Monday, March 26, 2001 6:39 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] splitting long lines of code
>At 3/25/2001 Sunday 11:36 PM, Craig Lefkowitz promulgated:
>>I have a long line of code that I'd like to split into two (or more) lines
>>for readability. Is there any way to do this?
>>
<SNIP>
If the only reason for breaking it is readability, why not add the broken
line as a comment:
' Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
' blah blah blah"]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
·SEROUT 1, 16468, [noparse][[/noparse]"blah blah blah blah"]
·SEROUT 1, 16468, [noparse][[/noparse]"blah blah blah"]
Sorry if I'm stating the obvious....
-- Jon Williams
In a message dated 3/28/01 4:08:13 PM Central Standard Time,
craig.lefkowitz@mindspring.com writes:
(and I may even get errors because the quotes and brackets aren't closed).
Perhaps an enhancement to future versions of the compiler would be to add a
continuation character (e.g. the _ in VB)?
Original Message
From: carl@gwis.com [noparse][[/noparse]mailto:carl@gwis.com]
Sent: Monday, March 26, 2001 6:39 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] splitting long lines of code
>At 3/25/2001 Sunday 11:36 PM, Craig Lefkowitz promulgated:
>>I have a long line of code that I'd like to split into two (or more) lines
>>for readability. ·Is there any way to do this?
>>
<SNIP>
If the only reason for breaking it is readability, why not add the broken
line as a comment:
' Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
' blah blah blah"]
[/font]
Good idea.· Thanks.·
--Craig
Original Message
From: jonwms@aol.com [noparse][[/noparse]mailto:jonwms@aol.com]
Sent: Wednesday, March 28, 2001 8:00 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] splitting long lines of code
[font=arial,helvetica]Why not use two SEROUT lines? ·It will work and the code will be easy to read.
·SEROUT 1, 16468, [noparse][[/noparse]"blah blah blah blah"]
·SEROUT 1, 16468, [noparse][[/noparse]"blah blah blah"]
Sorry if I'm stating the obvious....
-- Jon Williams
In a message dated 3/28/01 4:08:13 PM Central Standard Time,
craig.lefkowitz@mindspring.com writes:
(and I may even get errors because the quotes and brackets aren't closed).
Perhaps an enhancement to future versions of the compiler would be to add a
continuation character (e.g. the _ in VB)?
Original Message
From: carl@gwis.com [noparse][[/noparse]mailto:carl@gwis.com]
Sent: Monday, March 26, 2001 6:39 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] splitting long lines of code
>At 3/25/2001 Sunday 11:36 PM, Craig Lefkowitz promulgated:
>>I have a long line of code that I'd like to split into two (or more) lines
>>for readability. ·Is there any way to do this?
>>
<SNIP>
If the only reason for breaking it is readability, why not add the broken
line as a comment:
' Serout 1, 16468, [noparse][[/noparse]"blah blah blah blah
' blah blah blah"]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[/font]