Search found 8343 matches

by fxm
Oct 22, 2018 15:31
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

I completely approve. :-)
by fxm
Oct 22, 2018 15:08
Forum: General
Topic: A bigger font
Replies: 11
Views: 163

Re: A bigger font

If you use the FB 1.06 revision, 'Mid$()' (syntax issued from QBasic) is no longer supported in -lang fb. Use 'Mid()' instead (more generally, same rule for all string functions).
by fxm
Oct 22, 2018 9:16
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

For an archived code, it is a good practice to declare the procedures used at the code top. In the declaration syntax, the name of each parameter passed is not mandatory, but I think it is better to also specify it because it clarifies the procedure use (obviously if the name of the parameter is ch...
by fxm
Oct 22, 2018 8:34
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

owen wrote:Can you post an example of returned ByRef value

See documentation at BYREF (function results).
by fxm
Oct 22, 2018 8:32
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

Do you normally declare your subs and functions also? For an archived code, it is a good practice to declare the procedures used at the code top. In the declaration syntax, the name of each parameter passed is not mandatory, but I think it is better to also specify it because it clarifies the proce...
by fxm
Oct 22, 2018 8:04
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

When returning a variable from a function, the default returning is ByValue (a copy of the variable is returned): Declare Function name ( parameter-list ) As datatype (specifying explicitly ByVal in the return type declaration is forbidden) To return from a function a variable by reference, ByRef mu...
by fxm
Oct 22, 2018 6:56
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

Although I am familiar with the default rules for passing parameters (depending on the language used), I always explicitly specify ByVal or ByRef for clarity and also to avoid warnings because I always compile with the option -w pedantic among others. Default rules for passing parameters: - In the -...
by fxm
Oct 22, 2018 5:44
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

When 'ByVal' and 'ByRef' are used as declaration specifiers, they must be specified at the procedure declaration level only (not at the call level). Only 'ByVal' can also be used to specify a subtlety when passing an argument to a procedure or returning a parameter from a function: - To explicitly o...
by fxm
Oct 21, 2018 14:08
Forum: General
Topic: A bigger font
Replies: 11
Views: 163

Re: A bigger font

There are 3 pre-defined FB graphics fonts: 8x8 (by default), 8x14, 8x16. Using the "Width" keyword allows to modified the selected font: Dim As Uinteger w = 500, h = 300 Screenres w, h Print "Default graphics font (8x8)" Sleep Width w \ 8, h \ 14 Print "Graphics font (8x14)&...
by fxm
Oct 19, 2018 18:18
Forum: General
Topic: two const's with same name !
Replies: 1
Views: 61

Re: two const's with same name !

No error as long as the constant is redefined with the same value.
But if redefined with another value, "error 4: duplicate definition".
by fxm
Oct 19, 2018 9:38
Forum: Community Discussion
Topic: my best effort
Replies: 75
Views: 1577

Re: my best effort

At FbCadCam Forum, yajra1219 wrote:.....
PLAN OF THE DAY:
1.) Learn more about free basic.
.....

The first lesson is to well write the name of the language: FreeBASIC (in one word).
LOL :-)
by fxm
Oct 18, 2018 6:08
Forum: Community Discussion
Topic: New website
Replies: 34
Views: 3883

Re: New website

Thank you.
But who has the rights to do it?
by fxm
Oct 17, 2018 19:00
Forum: Community Discussion
Topic: New website
Replies: 34
Views: 3883

Re: New website

For the Search Query menu: Admins, Could you reduce the minimum size of words taken into account for the search function from 4 to 3 (as is done on other forums) ? I think that a sequence of 3 concordant characters (acronym for example) is already quite discriminating as a search criterion. This wo...
by fxm
Oct 14, 2018 20:34
Forum: Community Discussion
Topic: Line Input #n produces nullpointers
Replies: 10
Views: 173

Re: Line Input #n produces nullpointers

A current build ('freebasic_manual.chm') is available at http://users.freebasic-portal.de/stw/builds/.
by fxm
Oct 14, 2018 18:29
Forum: Community Discussion
Topic: Line Input #n produces nullpointers
Replies: 10
Views: 173

Re: Line Input #n produces nullpointers

jj2007 wrote:Maybe it should also be added to the help file, which n00bs are more likely to find and consult

What is the "help file"?

Go to advanced search