Search found 1568 matches
- Apr 16, 2024 23:30
- Forum: Beginners
- Topic: Simple class example
- Replies: 2
- Views: 266
Re: Simple class example
FreeBasic supports many neat constructs when you deal with objects, such as constructors, destructors and also properties, and they can all be assigned access rights as well: type Employee public: declare constructor() declare constructor( as string, as string, as integer ) declare destructor() '' G...
- Apr 12, 2024 11:35
- Forum: General
- Topic: Property Definition does not allow STATIC
- Replies: 6
- Views: 444
Re: Property Definition does not allow STATIC
@wallyg: Do you need to perform some validation of the data in the property? Because if not, then just a static variable suffices...
- Apr 03, 2024 21:06
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 269
- Views: 24725
Re: Freebasic 1.20.0 Development
At this point why don't you just audit the language for all the crap, broken and obtuse things, gut them, and rebuild them however you like with no regards for what went before (or leave them out altogether) and call it FreeBasic 2.0. Second the motion here. Naturally, it's a lot of work for one pe...
- Mar 01, 2024 21:00
- Forum: General
- Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
- Replies: 10
- Views: 1016
Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
For the last time, I know all this. But I have a hard time figuring out a useful use case for this. Operators be operators; we use them in expressions , we don't pass them as arguments to functions. The only language I can think of that has this feature is Forth, and that only because of its archite...
- Mar 01, 2024 12:16
- Forum: General
- Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
- Replies: 10
- Views: 1016
Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
I know that. I guess I'll have to sit down and think a useful use case for the feature...
- Mar 01, 2024 11:15
- Forum: General
- Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
- Replies: 10
- Views: 1016
Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
What would be a valid use case for this? Either I'm missing something, or I don't see the point of it...
- Dec 14, 2023 22:53
- Forum: General
- Topic: slow to execute after compiling source code
- Replies: 11
- Views: 1182
Re: slow to execute after compiling source code
You can add a one-time exclusion of virus scans for the 'FBIDETEMP.exe' file only. I tried this a while back. Turns out it doesn't work, since the file gets deleted after the execution ends. And so the brand new FBIDETEMP.exe is considered a new file and gets scanned anyway :roll: For my PC, it wor...
- Nov 14, 2023 17:03
- Forum: General
- Topic: slow to execute after compiling source code
- Replies: 11
- Views: 1182
Re: slow to execute after compiling source code
Turning off real time protection fixed the issue!! However that apparently means leaving it vulnerable to malware. Also it says after a short time it will turn it back on automatically. My indeed. It just shows you why it happens. You shouldn't disable the AV, but you could get the folder of the ex...
- Nov 14, 2023 0:59
- Forum: General
- Topic: slow to execute after compiling source code
- Replies: 11
- Views: 1182
Re: slow to execute after compiling source code
Indeed, real-time protection could cause issues with that kind of code. You might try disabling the AV and then run the code again to see if this solves the issue.
- Nov 07, 2023 23:11
- Forum: Projects
- Topic: simple compressor LZg9
- Replies: 11
- Views: 2636
Re: simple compressor LZg9
No need. Just open a new thread if you want to discuss a different approach
- Nov 07, 2023 22:47
- Forum: Projects
- Topic: simple compressor LZg9
- Replies: 11
- Views: 2636
- Oct 03, 2023 14:47
- Forum: General
- Topic: the POINT(n) function returns a wrong result
- Replies: 6
- Views: 1642
Re: the POINT(n) function returns a wrong result
I might be missing something, but what is wrong with simply doing a cast to get the expected values? screen 2 window(-10,-30)-(-5,-10) line(-9,-28)-(-6,-24) print"Window x-coordinate of the last point=";cast( long, point(2) ) print"Window y-coordinate of the last point=";cast( lo...
- Sep 02, 2023 19:31
- Forum: General
- Topic: Is &H a compile time literal?
- Replies: 10
- Views: 1738
Re: Is &H a compile time literal?
Seems to me it is, or it isn't. Your explanation states that it could sometimes be a Literal and sometimes not. This applies not just to &H but to all of the prefixes. Perhaps they should be called that: Prefixes or Type Prefixes. That's what he's telling you: it's a prefix for literals , not f...
- Aug 31, 2023 11:10
- Forum: Windows
- Topic: ScreenRes problem
- Replies: 7
- Views: 2108
Re: ScreenRes problem
... Using Screenlist the output says I can have a screen of 2560 x 1440 ... But it probably doesn't say that it supports it at 320x200x8, right? You can run the code (provided in the example section of the Wiki page for ScreenList ) to see the fullscreen modes available: Dim As Long mode Dim As UIn...
- Aug 18, 2023 16:43
- Forum: Windows
- Topic: Create sub to qbasic style
- Replies: 6
- Views: 1617