Search found 12009 matches
- Apr 24, 2024 20:05
- Forum: Beginners
- Topic: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
- Replies: 3
- Views: 150
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: 62
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: 150
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: 278
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: 443
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: 443
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: 443
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: 443
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: 602
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: 602
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: 312
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.
- Apr 21, 2024 11:41
- Forum: Beginners
- Topic: UDT Constructor with Param
- Replies: 7
- Views: 312
Re: UDT Constructor with Param
In an 'Enum' structure, symbol names are encoded using the signed 'Integer' data type. So 2^32 or 2^64 different values are available for the 32-bit or 64-bit freeBASIC, respectively. But since multiple symbol names in an 'Enum' structure can be associated with the same value, the number of symbol n...
- Apr 20, 2024 19:11
- Forum: Beginners
- Topic: Constructor Copy
- Replies: 14
- Views: 602
Re: Constructor Copy
In FreeBASIC, constructors, destructor, properties, member operators, member procedures, must all be declared inside the 'Type...End Type' structure, but must all be defined with their code body in outside this structure (this may perhaps change in the future).
- Apr 20, 2024 18:20
- Forum: Beginners
- Topic: Constructor Copy
- Replies: 14
- Views: 602
Re: Constructor Copy
Note:
You can add the code tags by pressing the "</>" button on the selected code body.
You can add the code tags by pressing the "</>" button on the selected code body.
- Apr 20, 2024 16:48
- Forum: Beginners
- Topic: Constructor Copy
- Replies: 14
- Views: 602
Re: Constructor Copy
For example: Type Superhero _name As String _powerLevel As Integer Declare Constructor () Declare Constructor (names As String, powerLevel As Integer) Declare Constructor (other As Superhero) Declare Function Calculate(value2 As Integer) As Integer Declare Destructor () Declare Operator Cast () As S...