Search found 3786 matches

by MrSwiss
Jun 22, 2021 18:21
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 24
Views: 334

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

I've noticed that your FBEdit is old: 1.06.8.
Get the last version: 1.07.6c at the German FB site.
(I've had crashes with that version but not with the latest.)
by MrSwiss
Jun 22, 2021 17:43
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 24
Views: 334

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

Try to use simple directory (folder) names. Without any spaces.
Put them onto your drive directly (not desktop): C:\DEV\FreeBASIC\...
(FBEdit is old meaning: it might not be able to deal with spaces in path's.)
by MrSwiss
Jun 22, 2021 17:21
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 24
Views: 334

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

Luis Babboni wrote:Mmmm, no, I have the two versions in the same folder.
And exactly that is the main problem.
(best is to delete it all)
Make 2 different folders, then unzip the 32-bit (only) version to one and,
the 64-bit (only) version into the other ...
(therafter you can switch compilers as described already)
by MrSwiss
Jun 22, 2021 15:05
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 24
Views: 334

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

OK!! I installed just the 64 bits version no matter I saw there are two versiones, 64 and 32 bits! :-D Then you've got the combined 32/64 version (with fbc32.exe and fbc64.exe), which is NOT what you want. With FBEdit it's better to NOT change the compilers name (simpler to handle). (2 x standalone...
by MrSwiss
Jun 20, 2021 23:56
Forum: Beginners
Topic: How to made a 32 bits program with 64 bits FB?
Replies: 24
Views: 334

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: 76

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: 95
Views: 2189

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: 95
Views: 2189

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: 95
Views: 2189

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: 95
Views: 2189

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: 721

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: 95
Views: 2189

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: 95
Views: 2189

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: 95
Views: 2189

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: 56
Views: 2306

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,...

Go to advanced search