Search found 45 matches

by Linuxbob
Jan 19, 2019 2:09
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 502

Re: Select Case operating like the C 'switch'

jj2007 wrote:
caseih wrote: and spiced with some German, apologies ;-)


Ist mir egal, Englisch oder Deutsch.
by Linuxbob
Jan 15, 2019 15:32
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1935

Re: The Birth of BASIC.

That's an excellent example. This is something I wrote in the mid 80's for a TRS-80 Model 4 using one of the BASIC compilers. Not quite as structured as yours, but not spaghetti either. 'DOLLAR POKER REPEATABILITY CALCULATOR 'FOR PRO-ENHCOMP ON TRS-80 MODEL 4 'PURPOSE: THIS PROGRAM WILL RUN A SERIES...
by Linuxbob
Jan 15, 2019 14:53
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1935

Re: The Birth of BASIC.

It is a mystery to me how that "Basic is not a proper programming language" urban legend survived all these years. In my experience, a lot of it comes from programmer snobbery: "there is only one way to do programming, and BASIC isn't it because it's a toy language." Spaghetti c...
by Linuxbob
Jan 15, 2019 13:15
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1935

Re: The Birth of BASIC.

I would rather think it was lack of structured programming. Basic was later heavily modified for structured programming (e.g. sub's with parameters like QB got instead of just gosub <linenr>), and removed the need for goto/gosub in most common scenario. [/quote] IMHO, the worst impediments to the o...
by Linuxbob
Dec 26, 2018 16:58
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 502

Re: Select Case operating like the C 'switch'

The problem is you're proposing creating a new FB-like language. It certainly wouldn't be FB, and it wouldn't be able to compile FB code if select/case were changed to behave like the C switch statement. Possibly FB could add a switch statement separate from select, but this would simply add comple...
by Linuxbob
Dec 26, 2018 16:08
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 502

Re: Select Case operating like the C 'switch'

[quote="grindstone"]There's no need for any modification, multiple selections are already possible: I understand that. The project I am working on requires me to do things with a CASE selection, and then perform additional tasks on a subset of the same selection. I can do it with an IF blo...
by Linuxbob
Dec 26, 2018 4:15
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 502

Select Case operating like the C 'switch'

Question: how difficult would it be to modify Select Case to act like the C 'switch' keyword, allowing multiple selections in the same Select block? I am working on a project that would be easier to implement with a C-like implementation, but I can accomplish the task without it. Thanks in advance!
by Linuxbob
Dec 26, 2018 3:48
Forum: Community Discussion
Topic: Merry Christmas!
Replies: 11
Views: 463

Re: Merry Christmas!

Merry Merry and Happy Happy!
by Linuxbob
Dec 26, 2018 3:44
Forum: Community Discussion
Topic: Let it snow
Replies: 5
Views: 328

Re: Let it snow

Very cool, thanks and Merry Christmas!
by Linuxbob
Oct 23, 2018 20:12
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated January 22, 2019)
Replies: 497
Views: 47013

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated October 7, 2018)

deltarho[1859] wrote:Yorkshire is a county in England where the friendliest people in the country live. Someone once described the Yorkshire Dales as God's country.


I agree. I have a good friend here in Ohio who is from Yorkshire, and she is awesome.
by Linuxbob
Sep 01, 2018 17:08
Forum: General
Topic: strange SLEEP behavior
Replies: 4
Views: 286

Re: strange SLEEP behavior

Thanks, I had done a search for SLEEP on the forum but for some reason missed that thread.

Ok, then, alternate plan in place. While-Wend works fine, sometimes old school is the best school.
by Linuxbob
Sep 01, 2018 16:31
Forum: General
Topic: strange SLEEP behavior
Replies: 4
Views: 286

strange SLEEP behavior

Hello, I am copying a program to a Linux machine that I originally wrote on a Windows machine. The program is trivial, just experimenting with the FreeBASIC graphics and screen functions. At each step in the experiments, I inserted a SLEEP to allow for progressing through the experiments in an order...
by Linuxbob
Aug 22, 2018 10:00
Forum: Community Discussion
Topic: programming for fun
Replies: 50
Views: 3174

Re: programming for fun

I agree, there is nothing wrong with the skilled trades, the folks who do them are essential and important. My dad grew up in Germany during WWII, so construction trades were just about the only places to find work after the war. His comments came out of what the trade had done to him: working in 90...
by Linuxbob
Aug 21, 2018 19:01
Forum: Community Discussion
Topic: programming for fun
Replies: 50
Views: 3174

Re: programming for fun

Since we are sharing... My dad was a bricklayer; he told me if I ever tried to become a bricklayer, he would break both my legs. I think he was serious. Paid my way through school. Played around with electronics as long as I can remember, got a 2 year degree in electronics engineering, then started ...
by Linuxbob
Jan 11, 2018 21:13
Forum: General
Topic: Benefits of inline if?
Replies: 31
Views: 1183

Re: Benefits of inline if?

I think it's a style thing more than anything else. For simple tests and assignments, the classic IF form is more familiar to me, probably because I came up in the 70s and 80s. IF x = 3 then a = 4 else a = 5 But IIF accomplishes the same thing in a more modern syntax. a = IIF(x = 3, 4, 5) The IIF sy...

Go to advanced search