Search found 313 matches

by Provoni
Jan 13, 2014 7:34
Forum: Beginners
Topic: String array memory usage?(solved)
Replies: 7
Views: 1192

Re: String array memory usage?

Hey all, MichaelW, I went with your WorkingSet solution, it's working fine! According to the documentation the size returned is in bytes. I guess for in order for me to get the actual megabytes I have to divide by 1048576 rather than 1000000. Thanks again. I'm so in love with FreeBASIC and it's comm...
by Provoni
Jan 11, 2014 22:44
Forum: Beginners
Topic: Multikey problem(solved)
Replies: 2
Views: 487

Re: Multikey problem

Aaaaah, now I understand why it comes in pairs. Thx allot MichaelW!
by Provoni
Jan 11, 2014 18:00
Forum: Beginners
Topic: Multikey problem(solved)
Replies: 2
Views: 487

Multikey problem(solved)

Hey all, I need to increment integer values by one per keypress using multikey combinations, I've managed to come up with a workaround but I have the feeling I'm doing things wrong. Consider my code, as an example. Thanks. #include "fbgfx.bi" #if __FB_LANG__ = "fb" Using FB 'Scan...
by Provoni
Jan 11, 2014 17:51
Forum: Beginners
Topic: String array memory usage?(solved)
Replies: 7
Views: 1192

Re: String array memory usage?

Thanks all for the answers!
by Provoni
Jan 10, 2014 16:10
Forum: Beginners
Topic: String array memory usage?(solved)
Replies: 7
Views: 1192

String array memory usage?(solved)

Hey all, Consider: dim array(500,500,1) as string. I know how to calculate the bytesize for integers etc but I'm unsure for strings. The Wiki reads 8-bit standard type so I guess if al my elements are empty my array would use (501^2)*2 bytes. But what happens when I start adding data to one of the e...
by Provoni
Jan 09, 2014 13:48
Forum: Beginners
Topic: Program crash(solved)
Replies: 5
Views: 741

Re: Program crash

Thanks fxm, that helps allot.
by Provoni
Jan 08, 2014 17:42
Forum: Beginners
Topic: Program crash(solved)
Replies: 5
Views: 741

Re: Program crash

Thanks that did it. Out of bounds.
by Provoni
Jan 08, 2014 17:02
Forum: Community Discussion
Topic: Introduction to Forum
Replies: 18
Views: 2690

Re: Introduction to Forum

Hey OlDosLover, it's me. (LeChuck) Welcome aboard! :)
by Provoni
Jan 08, 2014 17:00
Forum: Beginners
Topic: Program crash(solved)
Replies: 5
Views: 741

Program crash(solved)

Hey all, I have a strange problem with my program. I have a sub called INIT which setups all my arrays and some variables to standard values. I call this sub when the program starts or when I want to do a soft reset of all my values. It looks like this, very roughly: a=100000 b=10 c=100 redim array1...
by Provoni
Jan 08, 2014 16:44
Forum: Beginners
Topic: 0.5999999 ???(solved)
Replies: 19
Views: 1962

Re: 0.5999999 ???

Thanks for all reactions, this stuff is blowing my mind. Never thought I could make my own variable types! I will do so with the examples provided. My question has more than been answered.
by Provoni
Jan 08, 2014 14:29
Forum: Community Discussion
Topic: My intro
Replies: 3
Views: 686

My intro

Hello everyone, I'm a 32 year old Belgian hobby/amateur programmer from the QB64 community making a shift to FreeBASIC. My programming experience started as a 11 year old in QBASIC. I managed to write some very simple text games back then and all I knew was 100% self taught. It got boring after a wh...
by Provoni
Jan 06, 2014 14:18
Forum: Beginners
Topic: 0.5999999 ???(solved)
Replies: 19
Views: 1962

Re: 0.5999999 ???

Hey all, Thanks allot for all your answers and explanations. Good to know it is a limitation of the floating point. I like the Currency (fixed point) variable type but it is not available to FreeBASIC it seems. I'm currently upscaling an integer to get what I want, I'm using this value to scale up a...
by Provoni
Jan 05, 2014 13:38
Forum: Beginners
Topic: 0.5999999 ???(solved)
Replies: 19
Views: 1962

0.5999999 ???(solved)

Hey, I'm new to FreeBasic and encountered a small problem which I can't seem to fix with elegance. Something like this: declare as single a a=1 do a=a-0.1 loop Expected output on my end is 0.9, 0.8, 0.7, ... But it turns out to be 0.899999,0.799999, ... For doubles this turns into 0.90000000001 or s...

Go to advanced search