Search found 1016 matches

by jevans4949
May 05, 2017 16:16
Forum: Beginners
Topic: Can functions return arrays?
Replies: 40
Views: 2394

Re: Can functions return arrays?

@evil_twin: In case it's what you need to do, you can declare a dynamic array using ReDim, and resize it in your function using ReDim again. Trival demo: Sub resizer(hisarray()As integer) ReDim hisarray(0 To 99) hisarray(99) = 42 End Sub reDim myarray(0) As Integer resizer(myarray()) Print LBound(my...
by jevans4949
Apr 22, 2017 11:07
Forum: Community Discussion
Topic: ROM BASIC replacement?
Replies: 8
Views: 1292

Re: ROM BASIC replacement?

One would probably be better off starting with a free basic (not FreeBasic) interpreter, rather than a compiler. I did google this the other day, and found there are quite a few open source ones. Although I didn't bother looking into them. You then have to decide what to do about the quirks of each ...
by jevans4949
Apr 17, 2017 18:02
Forum: General
Topic: Problem with print# under FLTK? [SOLVED]
Replies: 2
Views: 422

Re: Problem with print# under FLTK?

@D.J.Peters: Thanks to your post in the Libraries board concerning the necessity of callback functions needing to be defined as cdecl, I amended my program, and the problem has gone away.

Many thanks.
by jevans4949
Apr 17, 2017 10:19
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 209
Views: 30032

Re: FLTK C for FreeBASIC Jan 09, 2017

@D.J.Peters: Thanks for your corrections. The significance of the Cdecl had passed me by, and the BoxType function.

I have corrected these, and re-loaded to Google Drive.
by jevans4949
Apr 14, 2017 21:47
Forum: General
Topic: Problem with print# under FLTK? [SOLVED]
Replies: 2
Views: 422

Problem with print# under FLTK? [SOLVED]

Writing a file analyser program under FLTK. To make life simpler (I thought), I decided to send the output to a Freebasic file, using Open ... As #2, Print #2, Close #2 in a callback routine run on a button push. It all works OK, and produces the right output, until I close the FLTK window. when a s...
by jevans4949
Apr 07, 2017 18:49
Forum: Community Discussion
Topic: Download Website Security Issue FIXED
Replies: 13
Views: 1545

Re: ATTENTION TO FB DEV - DOWNLOAD WEBSITE SECURITY ISSUE?

No problems here. Maybe your ISP?
by jevans4949
Apr 07, 2017 1:37
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 209
Views: 30032

Re: FLTK C for FreeBASIC Jan 09, 2017

My (infrequent) programming efforts these days mostly revolve around extracting data from one CSV file to another. I figured it would be useful to have a skeleton program to select input and output files with a mickey-mouse routine to copy from one to the other, and do this with FLTK. I have uploade...
by jevans4949
Jan 30, 2017 17:08
Forum: Community Discussion
Topic: Best Programming Language
Replies: 34
Views: 5025

Best Programming Language

This topic (from Kot, AFAIR) got lost in the move.

I have added Freebasic to the list, in case anybody wants to upvote it.

https://www.slant.co/topics/25/~best-programming-language-to-learn-first
by jevans4949
Nov 27, 2016 13:46
Forum: Community Discussion
Topic: Another robot idea
Replies: 3
Views: 709

Re: Another robot idea

Fantastic, and proabaly easier to program. I like the step-climbing.
They need to get it to go round corners, though.
by jevans4949
Oct 25, 2016 21:17
Forum: Beginners
Topic: Open Random file the EOF :Solved
Replies: 19
Views: 1663

Re: Open Random file the EOF

Have you seen the LOF function?
by jevans4949
Sep 01, 2016 0:52
Forum: General
Topic: Memory vs. Amount of Data
Replies: 9
Views: 850

Re: Memory vs. Amount of Data

You can start your loop with For n AS INTEGER = 1 to 20 and the program will set up a new instantiation of n within the scope of the loop. Otherwise it uses the previously declared variable n and runs the loop. This is more useful if you are searching an array, e.g. for n= 1 to 20 if input_key = tab...
by jevans4949
Aug 28, 2016 13:50
Forum: General
Topic: Memory vs. Amount of Data
Replies: 9
Views: 850

Re: Memory vs. Amount of Data

As far as I remember, you should by default get a megabyte of dynamic memory to play with, so unless your data records are enormous it's probably some other bug. Suggest you examine the last record processed against your code, and maybe put in a few print and sleep statements to check how far you ge...
by jevans4949
Aug 01, 2016 20:40
Forum: Community Discussion
Topic: I wish a big bundle
Replies: 37
Views: 4857

Re: I wish a big bundle

Can't remember where it came from but there was a cartoon witsh two techies talking; in the first 2 frames the conversation was "There are 14 different IDEs out there ... what we need is a new, more powerful one." The last picture showed them much later, saying "There are 15 differen...
by jevans4949
Aug 01, 2016 17:03
Forum: Community Discussion
Topic: I wish a big bundle
Replies: 37
Views: 4857

Re: I wish a big bundle

Can't remember where it came from but there was a cartoon witsh two techies talking; in the first 2 frames the conversation was "There are 14 different IDEs out there ... what we need is a new, more powerful one." The last picture showed them much later, saying "There are 15 different...

Go to advanced search