Search found 1372 matches

by VANYA
Apr 01, 2020 16:42
Forum: Beginners
Topic: (SOLVED) The extra destructor is called
Replies: 13
Views: 838

Re: The extra destructor is called

MrSwiss wrote:@VANYA, nice try, at a April Fool's prank.


April 1 has nothing to do with it. I am not good at OOP, despite being 10 years old with FB. It's just that I almost never use OOP or use it at the simplest level.
Please explain to me why the destructor is called if the constructor is hidden?
by VANYA
Apr 01, 2020 15:44
Forum: Beginners
Topic: (SOLVED) The extra destructor is called
Replies: 13
Views: 838

(SOLVED) The extra destructor is called

Hi all! Why does the destructor call again in this code? This is a bug? Type rational numerator As Integer denominator As Integer Declare Constructor() Declare Destructor() End Type Constructor rational() Print "*created: "; @This End Constructor Destructor rational() Print "destroyed...
by VANYA
Mar 22, 2020 10:48
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 800
Views: 160678

Re: FBGUI library for Windows 2

Minor update: The main fixes were for Linux version files. All these are basically point edits, except for the completely rewritten functions: WaitEvent and ClearString. Of course, it was necessary to rewrite the ClearString function in the Windows version, but I forgot. What will be where to start ...
by VANYA
Mar 22, 2020 10:44
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 56
Views: 7803

Re: IUP_FB_EDITOR (simple development environment)

good job so far Thank you for your kind words. --------------------------------------- Again update: 1) Added the ability to return to the previous place, after moving to the place of declaring a variable using the CTRL+SHIFT+F2 key combination 2) Added the ability to display information about the ...
by VANYA
Mar 20, 2020 11:02
Forum: Documentation
Topic: (SOLVED) Byref it seems incorrect description
Replies: 7
Views: 1093

Re: (SOLVED) Byref it seems incorrect description

fxm buddy! I was interested in this functionality for a very practical purpose. I have VECTOR CODE , it is written and it is undesirable to edit it, since the sources codes using it should just include it without any changes. And for example, there is CODE that uses the VECTOR code. You can pay atte...
by VANYA
Mar 20, 2020 5:39
Forum: Linux
Topic: window9 on Fedora 31
Replies: 2
Views: 425

Re: window9 on Fedora 31

In the reference library for each function, specify the platform, where this feature can work. Function SetColumnWidthListBox can only work on the WINDOWS platform.
by VANYA
Mar 18, 2020 12:39
Forum: Documentation
Topic: (SOLVED) Byref it seems incorrect description
Replies: 7
Views: 1093

Re: Byref it seems incorrect description

fxm wrote:Hacking on usage of references with the additional syntaxes allowed by FreeBASIC


This is interesting in terms of education, but is unreliable because in future versions may vary. fxm, my gratitude to you for your help and most importantly for your work in the design documentation.
by VANYA
Mar 18, 2020 11:20
Forum: Documentation
Topic: (SOLVED) Byref it seems incorrect description
Replies: 7
Views: 1093

Re: Byref it seems incorrect description

It turns out this design:

Code: Select all

dim shared byref sp as T


It is virtually useless to the programmer as a symbolic link is needed for UDT types (dynamic), to simplify the code. But for simple variables (with static linking), they are like a dog the fifth leg.

In any case, you fxm thank you very much!
by VANYA
Mar 18, 2020 8:42
Forum: Documentation
Topic: (SOLVED) Byref it seems incorrect description
Replies: 7
Views: 1093

(SOLVED) Byref it seems incorrect description

quote from: https://freebasic.net/wiki/KeyPgByrefVariables Declares a reference Syntax: (Dim | Static) [Shared] Byref name1 As DataType = variable1 [, Byref name2 As DataType = variable2, ...] But this is impossible ?! example: type T dValue as double End Type dim p as T ptr = new T dim shared byref...
by VANYA
Mar 14, 2020 12:40
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 56
Views: 7803

Re: IUP_FB_EDITOR (simple development environment)

nov79 wrote:Updated to the latest version. Anyway, how to change the theme (text background, color scheme...)? It's always black. I want to be able to select between dark and light theme. Thanks.


video: https://yadi.sk/i/zqcUtOCe9mNB4w
by VANYA
Mar 11, 2020 6:22
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 56
Views: 7803

Re: IUP_FB_EDITOR (simple development environment)

Hi ALL! Update Editor. ADDED: 1) move tabs (thanks WQ for code) 2) now the parser supports a block OPERATOR-END OPERATOR . The implementation of the parser is complete , now only bug fixes (if you will). 3) in the preview window (side window) added the ability to output: UNIONS, OPERATORS, PROPERTIE...
by VANYA
Mar 09, 2020 17:53
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 4901

Re: raylib headers

Very cool library!
by VANYA
Mar 09, 2020 8:31
Forum: General
Topic: (SOLVED) different behavior (. ->)
Replies: 4
Views: 282

Re: different behavior (. ->)

fxm wrote:Done:
KeyPgByrefVariables → fxm [Corrected the bugged example 2]


Ok, thank you!
by VANYA
Mar 09, 2020 7:09
Forum: General
Topic: (SOLVED) different behavior (. ->)
Replies: 4
Views: 282

Re: different behavior (. ->)

Thank you fxm! You as always helped. I just never seen such behaviour when the same code can be used simultaneously . and -> . So surprised, thought maybe some error in the behavior of the compiler. Now it is clear that in one case I write something that is at the address, and in the second case I r...
by VANYA
Mar 09, 2020 3:55
Forum: General
Topic: (SOLVED) different behavior (. ->)
Replies: 4
Views: 282

(SOLVED) different behavior (. ->)

Hi all! Why code with the operator . (dot) does not behave as I expect this code: type AAA as Byte M(10) End Type type CLASSBB vData as AAA ptr ptr iSize as Long iRealMemSize as Long declare function push_back(vData as AAA ptr) as BOOLEAN Declare Operator [] (byref iIndex as Long) byref As AAA ptr D...

Go to advanced search