Search found 12013 matches
- Apr 28, 2024 13:46
- Forum: Documentation
- Topic: Profiling freebasic programs
- Replies: 10
- Views: 344
Re: Profiling freebasic programs
About documentation update: - Added 'Compiler Option: -profgen' page. - Waiting for new update to add '__FB_PROFILE__' and '__FB_OPTION_PROFILE__'. - @ Jeff : For the Programmer's Guide, a single page containing profiling for both gmon/gprof and fb's profiler, or 2 separate pages (the simpler in my...
- Apr 28, 2024 12:21
- Forum: Documentation
- Topic: Profiling freebasic programs
- Replies: 10
- Views: 344
Re: Profiling freebasic programs
About documentation update: - Added 'Compiler Option: -profgen' page. - Waiting for new update to add '__FB_PROFILE__' and '__FB_OPTION_PROFILE__'. - @ Jeff : For the Programmer's Guide, a single page containing profiling for both gmon/gprof and fb's profiler, or 2 separate pages (the simpler in my ...
- Apr 27, 2024 19:12
- Forum: General
- Topic: Window Screen Command?
- Replies: 1
- Views: 206
Re: Window Screen Command?
Instead of 'WINDOW SCREEN .....', use 'VIEW SCREEN .....' instead.
But no solution for 'PRINT' which is not a graphic instruction. Use 'DRAW STRING' instead.
But no solution for 'PRINT' which is not a graphic instruction. Use 'DRAW STRING' instead.
- Apr 26, 2024 8:44
- Forum: Community Discussion
- Topic: FPS Limiter
- Replies: 1
- Views: 157
Re: FPS Limiter
Welcome to the forum! In addition to all the forum user codes ( Search for keywords: FPS , Search within: Topic titles only , Display results as: Topics ): https://www.freebasic.net/forum/search.php?keywords=FPS&terms=all&author=&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&...
- Apr 24, 2024 20:05
- Forum: Beginners
- Topic: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
- Replies: 3
- Views: 210
Re: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
Have you dowloaded your version from this Version 1.10.1 Released page?
- Apr 24, 2024 19:42
- Forum: Beginners
- Topic: 64bit FreeBASIC has no FB.chm help file
- Replies: 1
- Views: 92
Re: 64bit FreeBASIC has no FB.chm help file
For the manual, see Version 1.10.1 Released, "Documentation" paragraph.
- Apr 24, 2024 14:25
- Forum: Beginners
- Topic: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
- Replies: 3
- Views: 210
Re: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
Because you have downloaded a combined 32bit and 64bit FreeBASIC version (containing both fbc32.exe and fbc64.exe).
If you download a 32bit only or 64bit only FreeBASIC version, each contains a single fbc.exe (either for 32bit or 64bit).
If you download a 32bit only or 64bit only FreeBASIC version, each contains a single fbc.exe (either for 32bit or 64bit).
- Apr 23, 2024 16:13
- Forum: Beginners
- Topic: Dog pattern + gradient
- Replies: 4
- Views: 287
Re: Dog pattern + gradient
For example: ScreenRes 640, 480, 32 Dim As Integer r, g, b DIM buffer AS ANY PTR ' GRADIENT BACKGROUND -------------------------------------- // FOR x As Long = 0 TO 639 FOR y As Long = 0 TO 479 r = INT((255 * x) / 640) g = 0 b = INT((255 * y) / 480) PSET (x, y), RGB(r, g, b) NEXT Next ' TEXT ------...
- Apr 23, 2024 8:17
- Forum: Beginners
- Topic: Count character
- Replies: 10
- Views: 448
Re: Count character
Dim As String my_string = "screen 13:color 15,3:cls:line(100,100)-(150,150),,bf :dim as integer a = 10 : b,c,d : ""hello freebasic how are you?"": Rgb rnd 100 255 100 sleep locate 10,20" ' Initialize an array to store character counts (assuming ASCII characters) Dim As...
- Apr 22, 2024 14:19
- Forum: Beginners
- Topic: Count character
- Replies: 10
- Views: 448
Re: Count character
For i As Integer = 1 To 1024 Len(my_string) (otherwise, lots of ghost null characters are counted from the the string end index up to 1024 index) Your first code displays in the first line the value corresponding to: 1024 - Len(my_string) = 1024 - 156 = 868 What exactly do you want to display on th...
- Apr 22, 2024 13:16
- Forum: Beginners
- Topic: Count character
- Replies: 10
- Views: 448
Re: Count character
For long strings (greater than 256 characters), where execution time becomes more noticeable, it is advantageous to filter certain characters only when displaying counters: Dim As String my_string = "screen 13:color 15,3:cls:line(100,100)-(150,150),,bf :dim as integer a = 10 : b,c,d : "&qu...
- Apr 22, 2024 11:55
- Forum: Beginners
- Topic: Count character
- Replies: 10
- Views: 448
Re: Count character
For i As Integer = 1 To 1024 Len(my_string)
(otherwise, lots of ghost null characters are counted from the the string end index up to 1024 index)
(otherwise, lots of ghost null characters are counted from the the string end index up to 1024 index)
- Apr 22, 2024 8:19
- Forum: Beginners
- Topic: Constructor Copy
- Replies: 14
- Views: 610
Re: Constructor Copy
In your case of member data fields ( 'Integer' and 'String' ), defining a copy-constructor by the user is useless because the compiler can itself manage the copy of these member data fields between 2 instances. In the case of member var-len string or member var-len array for example, it itself gener...
- Apr 21, 2024 18:00
- Forum: Beginners
- Topic: Constructor Copy
- Replies: 14
- Views: 610
Re: Constructor Copy
If the topic "constructors, copy constructor, copy assignment, destructor" interests you especially, you can start by reading in the Programmer's Guide : - first the User Defined Types / Constructors and Destructors (basics) page, - then the User Defined Types / Constructors, '=' Assignmen...
- Apr 21, 2024 15:35
- Forum: Beginners
- Topic: UDT Constructor with Param
- Replies: 7
- Views: 321
Re: UDT Constructor with Param
For more information on 'Enum' than on the ENUM page of the manual, see also the Constants and Enumerations page of the Programmer's Guide.