Page 1 of 1

InputSelect(), pre-select one line

Posted: 23 Jul 2023 16:56
by PeterH
OK: I have an InputSelect() with style=1024 (+8192 +16384).
I want to pre-select a line by preselectitem, i.e. 10:=xxx.

A line is, for example:

Code: Select all

   $txt = <<<#>>>
....
↓ Delete Hardcpy-file ('$filehcp')                   |°hcpdel
...#>>> ;
(So the filename will be resolved.)
(All special chars seem to work: display is ok, and on select '°hcpdel' is returned.)

I find no way to define operand 10:= to preselect the line.

My hope is to specify 10:='°hcpdel', i.e. the returnvalue for this line, as it's rather easy and unique.

Tried many things - nothing did it :(
(Seems I'm blind now...)

Re: InputSelect(), pre-select one line

Posted: 23 Jul 2023 22:32
by PeterH
Thought I had tested that: must be the *complete* line as specified, with Caption, Pipe & Data!
(Good luck I haven't specified the Icon field :roll: )

But I think that makes no sense. When the Data field is unique enough to report what was selected - I think it should be good enough to define what shall be pre-selected.

So please: move this to wishes.

Short and in one:
Cmd inputselect, with style = 1024, operand preselectitem: should only need Data-part of a line to pre-select it.
(I.e. the text entered behind the 1st pipe char, up to the 2nd pipe (Icon) if any.)

If there's no Data it might fall back on Caption - I don't mind.

Re: InputSelect(), pre-select one line

Posted: 03 Aug 2023 11:53
by PeterH
Don, did you miss this wish :?:

Re: InputSelect(), pre-select one line

Posted: 04 Aug 2023 11:53
by admin
No, but wasn't interested. The pitch wasn't convincing. :)

Re: InputSelect(), pre-select one line

Posted: 04 Aug 2023 12:21
by PeterH
:(
But at least a circumvention, i.e. get the (variable) full line, is possible.
(Though not nice.)