Page 1 of 1

InkeyStr Syntax

Posted: Wed Jun 01, 2022 6:11 pm
by ocean77
Can't get the cursor to appear using InkeyStr, not sure about the syntax. I find the documentation somewhat confusing.
Here's what I got:

name$ = InKeyStr(#ALPHABETICAL, Cursor=True)

Shouldn't that work?

Re: InkeyStr Syntax

Posted: Thu Jun 02, 2022 12:41 pm
by SamuraiCrow
There are 3 optional parameters and they appear to be positional. Try as follows:

Code: Select all

name$=InKeyStr(#ALPHABETICAL,,,True)

Re: InkeyStr Syntax

Posted: Thu Jun 02, 2022 1:45 pm
by Flinx
Better try

Code: Select all

name$=InKeyStr(#ALPHABETICAL,Nil,Nil,True)

ocean77, this "Cursor=True" syntax is typically used in tables as argument.

Ralf

Re: InkeyStr Syntax

Posted: Thu Jun 02, 2022 2:13 pm
by ocean77
I'm afraid none of those options appear to work for me.

Code: Select all

name$=InKeyStr(#ALPHABETICAL,,,True)
Throws an 'unexpected symbol' error.
But

Code: Select all

name$=InKeyStr(#ALPHABETICAL,Nil,Nil,True)
passes compilation, but there is no result.

Re: InkeyStr Syntax

Posted: Thu Jun 02, 2022 3:42 pm
by ocean77
My apologies. The cursor does indeed appear using:

Code: Select all

name$=InKeyStr(#ALPHABETICAL,Nil,Nil,True)
My color scheme made the thin line hard to see. Somehow I thought it would be blinking as well.
Sorry for the confusion.

Is there any way to modify its appearance?

Re: InkeyStr Syntax

Posted: Sun Jun 05, 2022 9:39 pm
by airsoftsoftwair
ocean77 wrote: Thu Jun 02, 2022 3:42 pm Is there any way to modify its appearance?
No, that's currently not possible. You can only change its color.