IonicWind Software

Creative Basic => Learning How to Program => Topic started by: metalfoot on April 23, 2010, 12:18:43 PM

Title: Learning to Program Responses
Post by: metalfoot on April 23, 2010, 12:18:43 PM
Great idea. Please keep going.
Title: Re: Learning to Program Responses
Post by: GWS on April 23, 2010, 12:24:09 PM
Hey MF ..  :) .. maybe you're the one person in the World who's interested.

Excellent - just chime in with questions at any point ..  ;D

I'm always pleased to chat about anything programming-wise.

By the way, the above example works just the same in EBasic .. so to some extent, people would be getting familiar with both languages. ;)

Graham :)
Title: Re: Learning to Program Responses
Post by: aurelCB on April 23, 2010, 12:48:11 PM
Great idea Graham... :)
What to say else...
And yes Creative Basic is fascinating simple and useful programming language.
I really enjoy make programs in it... ;D
Title: Re: Learning to Program Responses
Post by: GWS on April 23, 2010, 01:40:54 PM
Hi Aurel,

I don't think people have ever really appreciated it's merits.
It's certainly the most useable, general-purpose software I've discovered in many years.

I hope to demonstrate why that is so. :)

Graham
Title: Re: Learning to Program Responses
Post by: Egil on April 23, 2010, 03:59:29 PM
I kind of like your idea Graham. ;D  Almost can't wait till the next chapter arrives...
I gave my ten years old gandson a demonstration, and the verdict was 'COOOOL'.  But he hasn't learned english yet, so I had to promiss him to translate your lessons into norwegian.

By the way, there is a typo in your first lesson:
Quoteusing the â€ËÅ"File â€ââ,¬Å" Save As’ menu.  Give it a name such as â€ËÅ"cbcons.iba’
It will work better with: using the â€ËÅ"File â€ââ,¬Å" Save As’ menu.  Give it a name such as â€ËÅ"cbcons.iba’
And when you consider yourself done with these basic routines, maybe you'll proceed with more general programming algorithms. Such as sorting, FIFO-buffers etc....  ::)

EB users can also find very useful information at: http://ebasic.wikispaces.com/ (http://ebasic.wikispaces.com/). Maybe a similar service for Creative Basic users should be started?
Anyway, most beginner difficulties regardless  of language version, can easily be solved by using the forum's search funtcions, or by asking the forum members.

Title: Re: Learning to Program Responses
Post by: GWS on April 24, 2010, 12:06:29 AM
Thanks for the comments Egil ..  :)

I'm sat here puzzling about the typo .. your two lines seem to be identical.  I assume you meant my putiing 'iba' instead of 'cba'.

Yep that was an error - I expect I'll make many ..  ::)  These things are just coming from my fingertips ..  :)

I've no idea where it might lead - it's a sort of 'Lazerus' experiment ..  :)
I'm trying to inject a bit of interest into programmers who maybe pass by, but usually don't say anything.

Maybe it will get more popular and busy round here. ;D

Nice to hear your grandson was interested .. my grandaughter is in 'senior' school now - all grown up - but they don't get taught how to program.  I think that's a shame.

I've not had good experiences with WikiPedia - their moderators are so snooty you wouldn't believe.  Haven't tried Wikispaces though.

Anyway, we'll see how it goes.  I'm still waiting for the first programming question ...  :o
It will be nice to get a bit of interaction going ..  ;D

all the best, :)

Graham

Title: Re: Learning to Program Responses
Post by: GWS on April 24, 2010, 03:11:56 AM
 ;D ;D ;D

Graham
Title: Re: Learning to Program Responses
Post by: GWS on April 29, 2010, 06:18:23 AM
Hi folks,

I've just posted section 5 dealing with arithmetic and string operations.

Since this is off the top of my head, there might be a mistake or two, or maybe an explanation could be improved.

Feel free to ask any questions, or make any (hopefully helpful) questions.

best wishes, :)

Graham
Title: Re: Learning to Program Responses
Post by: Egil on April 30, 2010, 09:13:45 AM
Thanks again Graham!
Been away for some days, just to find you have produced more translating work for me...

When I started out using EB and CB, the same skelleton program as you mention was used.
openconsole



do:until inkey$<>""
closeconsole
end


But sometimes it was very annoying to notice that the program terminated before I had time to inspect the result, just because I accidentally touched the keyboard.
My solution is this:
OPENCONSOLE


DO:UNTIL INKEY$ = CHR$(27)  ' Loops until the ESCAPE key is pressed
CLOSECONSOLE
END

Now the program don't stop until the ESCAPE key is pressed. Any key can be used in stead of the ESCAPE key.
Maybe other also find this tip useful.

Good luck!
Title: Re: Learning to Program Responses
Post by: GWS on April 30, 2010, 10:04:44 AM
Yep, true enough ..  :)  .. you can select any key you like to wait for ..

It's a nice flexible statement and works well.

Graham  :)
Title: Re: Learning to Program Responses
Post by: Code Scrambler on November 14, 2010, 10:33:33 PM
Thanks for the effort you put into these short lessons, Graham.  A couple of them helped me solve some coding problems I was having.

(New to CBasic, not programming.)

Can anyone post coding tips here, or should I use a different area?

First tip that comes to mind is the the first one I learned:  "You can NEVER over comment your code!"

Second tip that I'm reminded of is:  "When someone tells you the code is easily ported to another programming language, it's best if you analyze what it does, then write a new program from scratch."

Anyway, feels good to dust off the coding skills with a version of Basic that's actually about the easiest to use, of the dozen or so that I've looked at recently.
Title: Re: Learning to Program Responses
Post by: LarryMc on November 14, 2010, 10:43:51 PM
Quote from: Code Scrambler on November 14, 2010, 10:33:33 PM
Can anyone post coding tips here, or should I use a different area?
Try to make what you post(that is new) fit the section within Creative Basic board (as close as possible).

You can create as many new topics within the appropriate section as you want.

Welcome aboard.

LarryMc
Title: Re: Learning to Program Responses
Post by: GWS on November 15, 2010, 11:47:22 AM
Hello Code Scrambler ..  :)

Glad you're enjoying Creative - it's a classic development language for Windows applications.

Sorry I've gone a bit quiet recently .. some serious family health issues have arisen, that have pretty well halted my creative efforts.

When the dark clouds will lift I don't know  :(

But you can be sure .. 'I'll be back' ..  :)

Graham