InkeyStr Syntax

Find quick help here to get you started with Hollywood
Post Reply
ocean77
Posts: 111
Joined: Mon Jan 28, 2019 8:34 pm

InkeyStr Syntax

Post 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?
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: InkeyStr Syntax

Post by SamuraiCrow »

There are 3 optional parameters and they appear to be positional. Try as follows:

Code: Select all

name$=InKeyStr(#ALPHABETICAL,,,True)
I'm on registered MorphOS using FlowStudio.
Flinx
Posts: 188
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: InkeyStr Syntax

Post 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
ocean77
Posts: 111
Joined: Mon Jan 28, 2019 8:34 pm

Re: InkeyStr Syntax

Post 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.
ocean77
Posts: 111
Joined: Mon Jan 28, 2019 8:34 pm

Re: InkeyStr Syntax

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: InkeyStr Syntax

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