Search found 9159 matches

by fxm
May 20, 2010 21:20
Forum: General
Topic: what is the best type to use
Replies: 6
Views: 821

You can declare an user-defined type for money (as double), including an operator cast, in order to automatically format the money string. Example : #INCLUDE "VBcompat.bi" Type Money Value As Double Declare Operator CAST () As String End Type Operator Money.CAST () As Strin...
by fxm
May 20, 2010 16:44
Forum: Beginners
Topic: Some console application questions.
Replies: 3
Views: 648

The -s compiler option specifies the executable subsystem. Allowed subsystems are gui and console (by default, console is used). Specifying a gui subsystem prevents the console window from appearing behind the program window : compiler command with option "-s gui", to avoid visualization of the text...
by fxm
May 20, 2010 16:37
Forum: Beginners
Topic: Some console application questions.
Replies: 3
Views: 648

The equivalent to the DOS command "TITLE" does not exist in FreeBasic language. But you can send a command (Shell) to the system command interpreter, in order to write a title on the top of the text mode window. (compiler command with option "-s console" or without any option "-s") Shell("T...
by fxm
May 19, 2010 21:20
Forum: Beginners
Topic: (Solved)How do you pass a type to a function?
Replies: 14
Views: 1319

Type num a As Integer End Type Declare Function times2(n As num) As num Ptr Declare Function times3(n As num) As Integer Function times2(n As num) As num Ptr n.a *= 2 Return @n End Function Function times3(n As num) As Integer n.a *= 3 Return n.a End Function Dim nu ...
by fxm
May 19, 2010 20:44
Forum: Beginners
Topic: (SOLVED) Disabling auto scroll on console mode
Replies: 2
Views: 622

Syntax of instruction Print :
Print [ expressionlist ] [ , | ; ]

A new-line character is printed after the values in the expression list unless the expression list is followed by a comma or semicolon.

In order to avoid an auto scroll at the last line, put a semicolon in this case.
by fxm
May 18, 2010 21:21
Forum: Beginners
Topic: [SOLVED] How can I use accents?
Replies: 2
Views: 740

Use "WStr" to convert ASCII character strings to Unicode character strings.

Code: Select all

Print "Câo"
Print Wstr("Câo")

Sleep
by fxm
May 16, 2010 15:52
Forum: Documentation
Topic: online docs: close
Replies: 5
Views: 2495

The command "Shell" returns also a status, and consequently can be called as a function :
result = Shell(......
0 = OK
1 = error

That is not mentioned in the documentation.
by fxm
May 14, 2010 6:04
Forum: Beginners
Topic: I get a ( ld.exe: Cannot find -l3d ) error code
Replies: 3
Views: 624

Suppress the reference to lib "3d Perlin Noise" in the two declaration lines of export procedures. Declare Sub InitPerlinNoise Alias "InitPerlinNoise" () Declare Function Perlin3D Alias "Perlin3D" (Byval x As Single,Byval y As Single,Byval z As Single,Byval size As Single,Byval seed As Single,Byval ...
by fxm
May 12, 2010 18:28
Forum: General
Topic: Referring to non static member procedure in UDT
Replies: 2
Views: 481

Referring to non static member procedure in UDT

In this short example, why the line 19 "Pointeur = @THIS.IT1" (refer to a non static member procedure) is forbidden ("Syntax error in 'Pointeur = @THIS.IT1'"), when the line 18 "Pointeur = @Essai.IT0" (refer to a static member procedure) is authorized ? DIM SHARED Pointeur AS SUB () TYPE Ess...
by fxm
May 11, 2010 20:08
Forum: Beginners
Topic: Is it possible to SHELL w/o program pause?
Replies: 9
Views: 1407

Under Windows, you can use the cmd "Start" to launch a programm without wait the command interpreter exit.

Code from within FB :
result = Shell("Start program_name")

Example with WordPad program :
result = Shell("Start WordPad")
by fxm
Apr 30, 2010 17:58
Forum: Beginners
Topic: fb-manual.chm from FBIde
Replies: 2
Views: 850

In the download section of FreeBasic site :
Wiki documentation converted to CHM (Compiled {...}
http://downloads.sourceforge.net/fbc/FB ... .0-chm.zip
by fxm
Apr 25, 2010 14:52
Forum: General
Topic: New preprocessor statements to set the compiler dialect ?
Replies: 2
Views: 712

New preprocessor statements to set the compiler dialect ?

I would be interested in adding new preprocessor commands to control the compiler "fbc" as following for example : #arch ["386"/"486"/"586"/"686"] #gen ["gas"/"gcc"] #err ["e"/"ex"/"exx"] #target ["dos"/"linux"/"win32"/"xbox"/"cygwin"/"freebsd"] . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
by fxm
Apr 25, 2010 9:53
Forum: Windows
Topic: FB WIN32 SVN Daily Build
Replies: 126
Views: 53478

It was just to point out that the DOS build were now available on this site.
by fxm
Apr 25, 2010 8:56
Forum: DOS
Topic: FB DOS SVN compile from 03-07-10
Replies: 44
Views: 18324

Since yesterday, there is DOS build at the German FB portal (in addition to Windows and Linux builds).
http://www.freebasic-portal.de/download ... uilds.html

Wonderful !
by fxm
Apr 25, 2010 8:54
Forum: Windows
Topic: FB WIN32 SVN Daily Build
Replies: 126
Views: 53478

Since yesterday, there is DOS build at the German FB portal (in addition to Windows and Linux builds).
http://www.freebasic-portal.de/download ... uilds.html

Wonderful !

Go to advanced search