Search found 742 matches

by grindstone
Nov 07, 2020 8:30
Forum: General
Topic: File handling problems
Replies: 11
Views: 352

Re: File handling problems

Your program obviously hangs when gamestate is set to "0", but the snippet you posted provides too little information to say what's going wrong.

And maybe you should rethink the use of quotes as part of the headline name, because it makes the handling unnecessarily complicate.
by grindstone
Nov 06, 2020 12:18
Forum: Windows
Topic: [solved]Any XP user here ?
Replies: 4
Views: 268

Re: Any XP user here ?

Working on XP (as main OS) without any problems.

module()
min: 1 max: 1000000
by grindstone
Nov 06, 2020 11:41
Forum: General
Topic: File handling problems
Replies: 11
Views: 352

Re: File handling problems

It's not quite clear to me: When you say "apostrophes", do you mean apostrophes (') or quotes (") ? To use quotes as a literal you have to print it as double quotes: Dim As String f = "saves\gamesave.txt", unitname = "myUnit", g Open f For Output As #1 Print #1, &q...
by grindstone
Oct 22, 2020 14:25
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 528

Re: SETENVIRON

When using 'SETENVIRON(envStr)' with Linux, the 'envStr' string must be permanent (a literal, a variable declared in the main code or a static variable declared in a procedure), because Linux does not memorize the string but only a pointer to its data characters. Then what a...
by grindstone
Oct 21, 2020 9:10
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 528

Re: SETENVIRON

In Windows it works.
by grindstone
Oct 20, 2020 20:59
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. I
Replies: 10
Views: 716

Re: The beauty / magic of math

UEZ wrote:Not only the banana is math ;-)
I (personally) would rather say: "math is banana" <grin>

Maybe it's the fault of my teachers, but in the best case I consider mathematics as a necessary evil. Sorry for that.
by grindstone
Oct 14, 2020 22:43
Forum: General
Topic: I hate shell
Replies: 17
Views: 5089

Re: I hate shell

And what about shell commands that don't produce any return string at all, but e.g. start another programme?
by grindstone
Oct 05, 2020 19:00
Forum: Projects
Topic: Mosquito (UCI chess engine)
Replies: 22
Views: 3045

Re: Mosquito (UCI chess engine)

Roland Chastain wrote:Congratulations for your victory. :)
Thank you, but I'm a pretty bad chess player (although I love that game).

Roland Chastain wrote:It uses your excellent bipipe library.
Please don't forget to mention darkinsanity who did the Linux stuff.
by grindstone
Oct 04, 2020 15:16
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 537

Re: LCase UCase ANSI Characters

Alternatively you can translate the string into the OEM format (Windows only):

Code: Select all

#Include "windows.bi"
Dim As String L = LCase("ÀÁÂÃÄÅ"), U = UCase("àáâãäå")
CharToOem(L,L)
Print L
CharToOem(U,U)
Print U
Sleep
by grindstone
Sep 14, 2020 12:49
Forum: General
Topic: Does Anyone have a clue as to why this doesn't work?
Replies: 7
Views: 235

Re: Does Anyone have a clue as to why this doesn't work?

It's quite simple:

Code: Select all

Dim As Integer ff

ff = FreeFile

Open "C:\textfile.txt" For Output As ff
Print #ff, "This is a test"
Close ff

Have a look at the reference for further informations.
by grindstone
Sep 13, 2020 15:54
Forum: Tips and Tricks
Topic: Play videos on the console (Windows)
Replies: 13
Views: 660

Re: Play videos on the console (Windows)

I apologise, it was not caused by your program, Windows automatically changes the view if searching for media files ("It's not a bug, it's a feature"). Thank you for that hint.
by grindstone
Sep 13, 2020 12:25
Forum: Tips and Tricks
Topic: Play videos on the console (Windows)
Replies: 13
Views: 660

Re: Play videos on the console (Windows)

Correction: I used a corrupted .avi file for testing. Playing .avi files now works.

I'm not really sure, but maybe the program changed the "view" options of the searching function (F3) on my machine from "details" to "thumbnail".
by grindstone
Sep 12, 2020 14:04
Forum: Tips and Tricks
Topic: Play videos on the console (Windows)
Replies: 13
Views: 660

Re: Play videos on the console (Windows)

Here (WinXP 32) only .mp3 works. No controls (pause, resume...) while playing.
by grindstone
Sep 10, 2020 9:12
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 1046

Re: Preliminary Update to FBeginner EBook

Although I couldn't put more than a cursory glance on it, I must say you did an excellent job, and I agree with D.J.Peters that your EBook should become part of the FB download or at least been admitted into the "Documentation" download folder.
by grindstone
Aug 26, 2020 13:19
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 3304

Re: [off topic?] Ice creams and keys

olympic sleeper wrote:So...What's your favourite ice cream flavour?

Chocolate
Vanilla
Lemmon
Strawberry
Raspberry
Woodruff
Apple
Pistachio
Malaga
Stracciatella
Tomato (!)
Mocca
Blackberry
Cherry
Rockmelon
Gooseberry
Pear
Elder
Kiwi
Peach

My favoured flavour by far is (homemade) chocolate ice. *smile*

Go to advanced search