Search found 1617 matches

by Imortis
Nov 05, 2020 15:53
Forum: General
Topic: File handling problems
Replies: 11
Views: 352

Re: File handling problems

Dim as integer a, b, c, d, e, f, h, i, j, k, l Dim as string g Input #File, a, b, c, d, e, f, g, h, i, j, k Input #File, l This is not complete code, but it is designed to show how you can use Input. I you include more than one variable in the input line, it will reach each value (using the comma a...
by Imortis
Nov 05, 2020 13:53
Forum: General
Topic: File handling problems
Replies: 11
Views: 352

Re: File handling problems

Instead of Input, use Line Input:
https://www.freebasic.net/wiki/KeyPgLineinputPp

Also, look at the wiki page for EOF:
https://www.freebasic.net/wiki/KeyPgEof

And DIR:
https://www.freebasic.net/wiki/KeyPgDir

Hope this helps.
by Imortis
Nov 04, 2020 20:38
Forum: General
Topic: Old FB qb mode programs
Replies: 4
Views: 197

Re: Old FB qb mode programs

Moved to General.

Also, adding the following:

Code: Select all

#lang "QB"


At the top of your code will remove all the compiler errors.

EDIT: Works just too fast on my machine. Could do with some cleaning up to make it look a bit nicer, to convert it to lang FB, etc.
by Imortis
Oct 19, 2020 15:18
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.8 November 19, 2020)
Replies: 722
Views: 138951

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.7 May 31, 2020)

@PaulSquires, I found something that is intended behavior, but you may want to reconsider this particular edge case: When making a new form, the default save, if not specified in the file name will be frmWhatever.bas. This puts the file into the projects Module section, which does not work correctly...
by Imortis
Oct 16, 2020 16:51
Forum: Libraries
Topic: ASpell dictionaries to work with FB Example
Replies: 4
Views: 243

Re: ASpell dictionaries to work with FB Example

ld.exe: cannot find -laspell Where is the dll? I've searched a lot on the web, out of curiosity, but it seems there are no binaries around. Yeah, it looks like you are diving down the same rabbit hole I did. I had to dig to find them as well. If you want I can post a download link for all the libs ...
by Imortis
Oct 16, 2020 15:17
Forum: Libraries
Topic: ASpell dictionaries to work with FB Example
Replies: 4
Views: 243

ASpell dictionaries to work with FB Example

Does anyone have an aspell dictionary file that works with the example found here: https://www.freebasic.net/wiki/ExtLibaspell I have downloaded several files that all give an error when attempting to run the example. I either get this error: en_CA.multi:2: The key "strip-accents" is unkno...
by Imortis
Sep 25, 2020 13:53
Forum: Community Discussion
Topic: Reinventing the wheel
Replies: 17
Views: 785

Re: Reinventing the wheel

For me, I like to make things from scratch to learn how they work. I don't do that for my job, but when I am working on things that are not time sensitive, it is quite nice to learn the ins and outs of something but doing it from scratch.
by Imortis
Sep 17, 2020 17:57
Forum: Beginners
Topic: Output to file on disk in windows 10
Replies: 5
Views: 353

Re: Output to file on disk in windows 10

If you post your code, we might be able to help you more easily. As it is, there is not enough info to give you a definitive answer.
by Imortis
Sep 10, 2020 18:46
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 296

Re: USER TYPE ISSUE

I took your code, made a few code modification to make it do something without all the extra info, and moved it all to one file for ease of testing and it seems to work just fine. ..... REDIM PRESERVE FleetShips(460) AS ShipData ..... I see that my advice (and also the syntax specified in t...
by Imortis
Sep 10, 2020 17:42
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 296

Re: USER TYPE ISSUE

I took your code, made a few code modification to make it do something without all the extra info, and moved it all to one file for ease of testing and it seems to work just fine. TYPE ShipData ShipID AS long ShipTypeID as Long ShipClassID As Long ShipCallSign AS String * 40 UAPShipRegistryNumber AS...
by Imortis
Sep 10, 2020 13:43
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 296

Re: USER TYPE ISSUE

What is the editor? I have found that with a couple of the newer ones, you have to save the file, close it and re-open it before those kinds of auto-completes will work.
by Imortis
Jul 11, 2020 16:03
Forum: Documentation
Topic: Wiki improvements
Replies: 555
Views: 99211

Re: Wiki improvements

I wrote a beginning of the page 'Programmer's Guide / Making Binaries / Executables' . A volunteer to improve / complete ? I can take a look at the Executables page. I am not sure when I will get to it, but I am pretty sure I can fill out the needed info. Maybe a little free time during...
by Imortis
Jun 29, 2020 14:42
Forum: General
Topic: What is this technique called?
Replies: 6
Views: 381

Re: What is this technique called?

Technically labels and line numbers are the same thing in FB. So yes, you could say they are labels.
by Imortis
Jun 29, 2020 13:11
Forum: General
Topic: What is this technique called?
Replies: 6
Views: 381

Re: What is this technique called?

That code is quite old. FreeBASIC still supports line numbers but there are much better and easier ways to do the thing you are describing. PRINT "Hello. How old are you?" INPUT A IF A < 13 THEN print "You're younger than 13." ELSE PRINT "You're older than 13." END IF
by Imortis
Jun 27, 2020 15:22
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 3304

Re: Old school text adventure as a way of re-learning coding

fxm wrote:@Admin,
can you remove this duplicate (with viewtopic.php?f=8&t=28659) ?

Got it.

Go to advanced search