Search found 1017 matches

by jevans4949
May 20, 2017 17:52
Forum: Beginners
Topic: Saving output to a file
Replies: 11
Views: 1165

Re: Saving output to a file

If it's just plain text output, you could modify your program to print the results you need to a .txt file, which you could print either from Notepad or FBEdit, or paste the content into your word processor. open "answers.txt" for output as #94 print #94,"my answer" close #94
by jevans4949
May 05, 2017 16:16
Forum: Beginners
Topic: Can functions return arrays?
Replies: 40
Views: 2656

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: 1390

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: 462

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-1.3.3 for FreeBASIC
Replies: 363
Views: 56691

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: 462

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: 1709

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-1.3.3 for FreeBASIC
Replies: 363
Views: 56691

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: 5385

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: 765

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: 1891

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: 952

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: 952

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: 5165

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...

Go to advanced search