Search found 3782 matches

by MrSwiss
Jun 20, 2021 23:56
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 6
Views: 122

Re: How to made a 32 bits program with 64 bits FB?

Sorry. I install the standalone version for 32 and 64 bits.... but do not know how to compile a 32 bit version now from FBEdit :-( Well, that's really simple: ⋅ Click Menu option "Options" ⋅ Select "Path Options" ⋅ In the popup, you select the path ...
by MrSwiss
Jun 19, 2021 22:36
Forum: Beginners
Topic: Where are acolours in the Help
Replies: 3
Views: 65

Re: Where are acolours in the Help

Code: Select all

For i As UInteger = 0 To 15
    If i < 8 Then Color i, 15 Else Color i, 0
    Print "console Color"
Next
Sleep
This little snippet shows it all.
by MrSwiss
Jun 14, 2021 22:22
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

It can even be made more complete. Attaching Type specific procedures to the type they belong to: ' ----- define a type ----- type ACCOUNT as Double balance Declare Sub addACC() ' deposit Declare Sub subAcc() ' withdrawal Declare Sub Show() ' show balance End Type sub ACCOUNT.Show() Print Print &quo...
by MrSwiss
Jun 14, 2021 0:29
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

Whenever a single variable is tested for different values only, Select Case i
statement is the better choice, than "endless if's" (or elseif's).
by MrSwiss
Jun 12, 2021 15:36
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

Yes, that is exacly the way I've had in mind. Another method of learning is: look around the forum for code written by others. Then play around with it, until you understand "how it works" and, perhaps "why it was done 'that way' and not another". Keep in mind, that there is usua...
by MrSwiss
Jun 12, 2021 15:04
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

joeyxl wrote:... and applying the things ive been able to understand.
Maybe also "the other way 'round".
Meaning: small project to learn a new keyword, concept e.t.c.
(not necessarily useful for another purpose, except for "learning" and if kept "for reference")
by MrSwiss
Jun 12, 2021 14:48
Forum: Projects
Topic: Noughts And Crosses -- Olympic
Replies: 5
Views: 715

Re: Noughts And Crosses -- Olympic

@dodicat,

you may want to change the following line:

Code: Select all

#if __FB_VERSION__ = "1.08.0"
-- to --

Code: Select all

#if __FB_VERSION__ >= "1.08.0"

To also include later versions; e.g. "1.08.1", "1.09.0" e.t.c. (just more versatile).
by MrSwiss
Jun 10, 2021 3:24
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

"When developing a skill, it is much better to acquire the right reflexes from the start rather than have to correct years of bad practice." What bad practice? All those stupid variable specifiers like: $% e.t.c. And YES, pre-declaring variables ... but, without the nonsense, mentioned ab...
by MrSwiss
Jun 10, 2021 2:38
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

"When developing a skill, it is much better to acquire the right reflexes from the start rather than have to correct years of bad practice ." GREEN = referes to FB dialect BLUE = referes to QB dialect (especially for people, starting from scratch) Btw: that's been the reason I've earlier ...
by MrSwiss
Jun 09, 2021 22:35
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

Just a sort of WARNING.

Too many beginners, at the start, "bite off more, than they can chew".

Meaning:
  • picking too big a project
  • getting frustrated because it takes to long, before seeing results
  • quitting programming early, out of pure frustration
by MrSwiss
Jun 08, 2021 20:18
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2186

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Propose a lil' bit of pre-processor to work around the problem: #If __FB_VERSION__ >= "1.08.0" Dim As Long w, h, cd, ptch, bypp, hz #Else Dim As Integer w, h, cd, ptch, bypp, hz #EndIf Dim As String drv Screen 19, 32 Width 800 \ 8, 600 \ 16 ' obtain info about current mode ScreenInfo(w, h,...
by MrSwiss
Jun 08, 2021 19:37
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

I agree with LZ, that going "old style" is in fact a choice, that only costs time, without real benefit.

Todays adviced method is: use FB right from the start (avoid QB detour).
by MrSwiss
Jun 08, 2021 19:18
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2186

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Have you tested it, or is it just the new usage syntaxes (for fbc version >= 1.08) in the documentation that are confusing? I think its the changed data-types: Long / LongInt instead of Integer that causes trouble. Just tested ScreenInfo with Long (WIN 10): works ... like a charm (thanks, to coderJ...
by MrSwiss
Jun 08, 2021 16:27
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 94
Views: 2038

Re: Is FreeBASIC good for beginners to progrmaming?

"A Beginners guide to freeBASIC" by Richard D. Clark & Ebben Feagan That is pretty okay, however, it's also pretty old. (Refering to the version of FreeBASIC compiler, they had at their disposal, at the time of writing it.) There have been plenty enhancements/new features/bugfixes e.t...
by MrSwiss
Jun 07, 2021 23:00
Forum: General
Topic: random list of natural numbers
Replies: 4
Views: 158

Re: random list of natural numbers

If you only want unique numbers (ranged) within a array of defined size of elements, then this may be, what you are looking for: Unique Numbers Sequence Generator WARNING: the closer the requested 'elements' are to the defined size of 'range', the longer it takes to run. (since the uniqueness test i...

Go to advanced search