Search found 784 matches

by grindstone
May 26, 2021 14:40
Forum: Beginners
Topic: Return information from a Shell
Replies: 17
Views: 532

Re: Return information from a Shell

jj2007 wrote:It works, Grindstone, but I suspect OP wants to do more with the returned stuff. Like e.g.

Code: Select all

MyString=ShellString("ProcessMyData.exe /quickly")
In this case I would recommend to use "OPEN PIPE" like speedfixer suggested.
by grindstone
May 26, 2021 8:26
Forum: Beginners
Topic: Return information from a Shell
Replies: 17
Views: 532

Re: Return information from a Shell

Redirecting the console's output is quite simple: As an example, first compile this by the name of "TestShell" : Print "Hello World" Then, as the calling program, compile and run this in the same directory: Print "Shell response: "; Shell "TestShell.exe 2>&1&qu...
by grindstone
May 05, 2021 8:02
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 566

Re: There is no reason anyone would want a computer in their home.

Very strange. My old-fashioned analogue scale has exactly the same issue. Maybe not only the global average temperature is rising, but also the gravity...
by grindstone
May 03, 2021 14:16
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 566

Re: There is no reason anyone would want a computer in their home.

counting_pine wrote:...there are some cases where 1024 chickens would be preferable.
Rice fields are usually plowed by a flock of ducks.
by grindstone
May 03, 2021 8:51
Forum: Community Discussion
Topic: There is no reason anyone would want a computer in their home.
Replies: 11
Views: 566

Re: There is no reason anyone would want a computer in their home.

badidea wrote:I fotgot the comuter in my washing machine and weight measuring scale, but that last one seems broken anyway.
Due to overload? *grin*
by grindstone
Apr 09, 2021 7:26
Forum: Beginners
Topic: Exiting from ASM
Replies: 7
Views: 506

Re: Exiting from ASM

Jumping to an empty line seems inelegant, if not illogical. Then just use the NOP (=No Operation) statement: Dim bytvar As Byte Dim bstatus As Byte Do Input "Enter a byte value (0 to quit): ", bytvar If bytvar = 0 Then Exit Do End If ' If bytvar = 1, then Status = 1, else Status = 0 ASM c...
by grindstone
Apr 05, 2021 17:24
Forum: Beginners
Topic: Controlling transistors via usb
Replies: 10
Views: 668

Re: Controlling transistors via usb

On the other hand: The capability of accessing USB by FB -analogue to GetMouse or GetJoystick would be a nice feature.
by grindstone
Mar 30, 2021 15:40
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 883

Re: Inkey issue in console on rmb

Works also on XP.
by grindstone
Mar 30, 2021 10:53
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 883

Re: Inkey issue in console on rmb

Same behaviour on WinXP if "Quick Edit" is on (switched off by default here). Very funny!
by grindstone
Mar 30, 2021 9:07
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 883

Re: Inkey issue in console on rmb

I can't reproduce that. Performing any mouse action, nothing happens (just as it ought to be). What OS are you using and what version of FB?
by grindstone
Mar 23, 2021 14:49
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 730

Re: Function or subroutine?

Sorry, "Generator" of what? From chessboard to FEN? And vice versa. You can set and read the FEN as well as the board: Dim As Integer board(12,12) Dim As tFen gamefen Dim As String myFEN myFEN = gamefen.fen 'generates a FEN from the members of "gamefen" myFEN = gamefen.fen(board...
by grindstone
Mar 11, 2021 14:44
Forum: Community Discussion
Topic: ISO-Date provider? (in next FBC-release)
Replies: 7
Views: 563

Re: ISO-Date provider? (in next FBC-release)

What about an appropriate preprocessor?

Code: Select all

#DATE US
#DATE ISO
by grindstone
Mar 05, 2021 15:50
Forum: Community Discussion
Topic: Thank you
Replies: 12
Views: 1002

Re: Thank you

I fall into line: A big thank you to all those who work to bring forth FreeBASIC.
by grindstone
Feb 25, 2021 14:27
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 730

Re: Function or subroutine?

This is your parser for extract data from the FEN? It's a parser as well as a generator. The advantage is that you don't have to care about the conversion. Just read or write either the FEN or any of its values as a variable. The example I've posted won't work as standalone, because it's linked wit...
by grindstone
Feb 24, 2021 17:10
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 730

Re: Function or subroutine?

In my Colochessum engine testing program I solved this with properties. You only have to write the fen string to the UDT and immediately afterwards you can read all corresponding values. Conversely you can get the fen from the actual values (you should replace the Integers with ULongs): Type tFen pi...

Go to advanced search