Search found 1053 matches
- Mar 08, 2024 17:43
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20552
Re: Freebasic 1.20.0 Development
Thinking around the issue of converting existing code, I suppose that code that depends on the existing STRING*n construct would proabaly work by changing DIMs to ZSTRING*n most of the time. Yes, but the compatibility that exists between a STRING*N and a STRING no longer exists between a ZSTRING*N ...
- Mar 08, 2024 14:41
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20552
Re: Freebasic 1.20.0 Development
Thinking around the issue of converting existing code, I suppose that code that depends on the existing STRING*n construct would proabaly work by changing DIMs to ZSTRING*n most of the time.
- Feb 26, 2024 23:25
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20552
Re: Freebasic 1.20.0 Development
I remember back in the day, in some versions of BASIC, people used to store binary data in strings. Sure, we have workarounds for that, but maybe it needs to be thought about.
- Feb 25, 2024 18:31
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20552
Re: Freebasic 1.20.0 Development
To change STRING* at this stage is probably going to break a lot of code, although the change you suggest will make it easier to convert QBASIC / GWBASIC programs to Freebasic. I suggest:- * Have a new string type (FSTRING*?) which behaves in the way you describe * Rename the eixisting one (CSTRING*...
- Nov 10, 2023 19:07
- Forum: General
- Topic: I need a workaround for a DIR problem
- Replies: 12
- Views: 2595
Re: I need a workaround for a DIR problem
Where would I find findfirstfile/findnextfile ? And yes it could be a Unicode character mixed in with the filename. I got this file from a friend in Europe and English is not his first language. I looked at the characters in the filename and it was an embedded zero byte in the middle of the filenam...
- Nov 10, 2023 17:53
- Forum: General
- Topic: I need a workaround for a DIR problem
- Replies: 12
- Views: 2595
Re: I need a workaround for a DIR problem
You could try using findfirstfile/findnextfile variants instead of DIR.
- Oct 14, 2023 16:19
- Forum: General
- Topic: double trouble
- Replies: 42
- Views: 4885
Re: round to two digits?
You have the same problem with pocket calculators; the more sophisticated ones get round it by holding your intermediate result as an (improper) fraction. Try doing 1/3+1/3+1/3 on older calculators and you will get 0.999999. A modern one will have internally calculated 3/3 and will give you the corr...
- Oct 07, 2023 17:41
- Forum: General
- Topic: Reset Random Numbers
- Replies: 9
- Views: 1874
Re: Reset Random Numbers
Randomize timer uses the current value of the timer to set the rnd function going. Depends on how your chosen ransomizer works, but you should be able to generate the same numbers over and over by randomize with a defined value - either a constant or a value you key in. Suggest you try it and see wi...
- Sep 30, 2023 9:40
- Forum: General
- Topic: Question on internal workings of Allocate
- Replies: 4
- Views: 1400
Re: Question on internal workings of Allocate
I seem to remember that I discovered the length is in the qword before the pointer which you get back. Don't think this is publicised anywhere You could test fairly easily whether this is the case.
- Sep 23, 2023 15:53
- Forum: Windows
- Topic: how to enter multibyte character with INPUT statement
- Replies: 2
- Views: 1238
Re: how to enter multibyte character with INPUT statement
Can't remember the details, but INPUT has its own keboard map similar to the old DOS maps, so only allows 256 character set. I believe you can change it, but I can't rememeber how, and not for standard Chinese. You probably need to go to Windows or FLTK. Sorry, it's not a problem I've pursued in any...
- Jun 12, 2023 9:24
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 227
- Views: 20552
Re: Freebasic 1.20.0 Development
What about versions 1.11 to 1.19?
- Mar 09, 2023 11:40
- Forum: Community Discussion
- Topic: It's it possible to translate FreeBasic for Atari2600 ?
- Replies: 8
- Views: 1586
Re: It's it possible to translate FreeBasic for Atari2600 ?
Reminds me of a spoof ad for Sinclair Z80 machine, saying you could use it for some purpose I now forget, but with the comment "Requires 16,000 1K RAM packs". Afaik z80 memory above 64k requires bankswitching on the address bus pins, and that is rarely automatically done in-compiler afaik...
- Mar 09, 2023 10:05
- Forum: Community Discussion
- Topic: It's it possible to translate FreeBasic for Atari2600 ?
- Replies: 8
- Views: 1586
Re: It's it possible to translate FreeBasic for Atari2600 ?
Reminds me of a spoof ad for Sinclair Z80 machine, saying you could use it for some purpose I now forget, but with the comment "Requires 16,000 1K RAM packs".
- Jan 02, 2023 13:19
- Forum: Community Discussion
- Topic: Copy Arrays
- Replies: 17
- Views: 3010
Re: Copy Arrays
Seems to me it would be a good idea, though may need to consder what happens when arrays are different sizes. We had this in PL/1 back in the 1970's. Along with "X=Y, by name" where fields in one structure could be copied to another with the same names, taking care of type conversions on t...
- Dec 15, 2022 12:30
- Forum: Libraries & Headers
- Topic: FLTK-C-1.3.3 for FreeBASIC
- Replies: 433
- Views: 197254
Re: FLTK-C-1.3.3 for FreeBASIC
I solved my above problem eventually. I had set up a separate newpage function to invoke the FL-Startpage function and format the grid and column headers. while having all the other FLTK function calls in my main file processing loop. What I forgot to do was to invoke the newpage function after the ...