well .... as a fun "exercise for the reader" I wrote this little diddy
Works great as I can now take some of my huge SQL statements, dump them
right into RB and have this thing rewrap them.
Although it doesn't do it quite as intelligently as I illustrated - it
just whacks the statement at a hard wrap point that you specify (right
now default is 80 characters)
Even had to get it to parse a bit of syntax to recognize a valid
assignment statement so it would not do this with operations that are
not assignment like
while i =
for i =
if i =
and so on
you're welcome to it if you want it
On Sunday, March 30, 2003, at 01:43 PM, Will Leshner wrote:
Maybe. But I get a little worried when it starts writing code for you.
But wait. Maybe that's the point. Maybe it could start writing code
for people who are absolutely new to programming. I don't know how
that would work in practice but it might be kinda fun to think about.
On Sunday, March 30, 2003, at 12:02 PM, Norman Palardy wrote:
How about a way to split very long string assignments into multiple
lines that give the equivalent ?
something like
dim t as string
t = "something that will run wayyyyy off the edge of the editor
window"
and after processing it splits it up to
t = "something"
t = t + " that"
t = t + " will"
etc ..
so the end result is a wrapped assignment statement
this seems like it would be very handy
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
Norman Palardy
Director Of Software Development Zymeta Corporation
npalardy at zymetacorp dot com www.zymeta.com
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.
|