Liberty BASIC Community Forum
« LB Assist and CASE »

Welcome Guest. Please Login or Register.
Sep 19th, 2017, 1:57pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: LB Assist and CASE  (Read 1581 times)
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2278
xx LB Assist and CASE
« Thread started on: Jan 3rd, 2006, 9:53pm »

First of all, let me say that my purchase of LB Assist was the best value I've ever gotten, with the exception of LB itself!

Ok, I'd just like to ask, is it possible to format the CASEes under a select case, like so:

select case var$
case "something"
do this 'note the tab after the case
case "something else"
do this
End Select.

I tried the code formatter, and it flattened out my CASEes.
« Last Edit: Jan 3rd, 2006, 10:01pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Noble D. Bell
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 930
xx Re: LB Assist and CASE
« Reply #1 on: Jan 3rd, 2006, 10:14pm »

on Jan 3rd, 2006, 9:53pm, Chris Iverson wrote:
I tried the code formatter, and it flattened out my CASEes.


Flattened out? How did it handle them? I am getting ready to purchase Assist next week when I get paid again.
User IP Logged

Thank you and God bless,
Noble D. Bell
http://www.noblebell.com
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5295
sad Re: LB Assist and CASE
« Reply #2 on: Jan 4th, 2006, 02:38am »

on Jan 3rd, 2006, 10:14pm, Noble D. Bell wrote:
Flattened out? How did it handle them?

Noble,
the code formater changes the indenting from:
select case
case 1
print "one"
case 2
print "two"
end select

to:
select case
case 1
print "one"
case 2
print "two"
end select

User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: LB Assist and CASE
« Reply #3 on: Jan 4th, 2006, 08:00am »

I agree that SELECT/CASE should be indented for each case by default. The thing about automatic code formatters is that there is not one good default for everyone. Some people will always dislike some feature of an automatic code formatter.

The good news is that there will be more releases of LB Assist for LB4, AND they will be free of charge to paid Assist customers. One of the things I plan to improve in the coming months will be the code formatter including some user configurable options, and I also plan to add some completely new features like a unit testing facility, and some more stuff. smiley

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Althiom
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 156
xx Re: LB Assist and CASE
« Reply #4 on: Jan 4th, 2006, 08:23am »

Quote:
there is not one good default for everyone


Well, you could always go the Linux route and make everything user configurable lipsrsealed

Just a joke, but if you have some time on your hands (yeah,
right) it might be worth looking into.

Althiom
User IP Logged

Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2278
xx Re: LB Assist and CASE
« Reply #5 on: Jan 4th, 2006, 6:15pm »

lol, good point. And thanks for providing that example, Stefan.
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
HJackson
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 596
xx Re: LB Assist and CASE
« Reply #6 on: Mar 22nd, 2011, 1:01pm »

good afternoon all,

i've been debating with self about upgrading to LB 4.04 pro.

my only irriatant wth assist is the quote unquote
flattening of select case .

has this been corrected or chaged or what ever to be better formatted?

Hank
« Last Edit: Mar 22nd, 2011, 1:02pm by HJackson » User IP Logged

Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2278
xx Re: LB Assist and CASE
« Reply #7 on: Mar 22nd, 2011, 1:06pm »

No, it still flattens out, but if you maintain your own syntax formatting, it shouldn't be a problem.

There are so many things in LB Pro that are very useful, I find this to be a small annoyance, that I barely, if ever, run into.
« Last Edit: Mar 22nd, 2011, 1:07pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls