Search found 2771 matches

by PeterH
25 Jul 2023 21:41
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 95025

Re: Website and Help Typos

Something went wrong... I always saw Windows-Help and .pdf-Help identical. So I didn't specify... I need the correct description of load() operand resource_type in the pdf... There it still contains the ' ' :cry: By the way, to the (general) difference between Win-Help and .pdf-Help: the .pdf is les...
by PeterH
23 Jul 2023 22:32
Forum: Wishes
Topic: InputSelect(), pre-select one line
Replies: 4
Views: 313

Re: InputSelect(), pre-select one line

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 wh...
by PeterH
23 Jul 2023 16:56
Forum: Wishes
Topic: InputSelect(), pre-select one line
Replies: 4
Views: 313

InputSelect(), pre-select one line

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: $txt = <<<#>>> .... ↓ Delete Hardcpy-file ('$filehcp') |°hcpdel ...#>>> ; (So the filename will be resolved.) (All special chars seem to work: display is ok...
by PeterH
21 Jul 2023 17:36
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 95025

Re: Website and Help Typos

:tup:
Thanks!
by PeterH
21 Jul 2023 14:38
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 95025

Re: Website and Help Typos

A bit more of a real world problem: Command load 's 3rd operand is named [resource type] , i.e. 2 words. A person reading it often just doesn't notice that. But a parser trying to "understand" commands, operands, syntax description etc does :( (Yes: still working on that...) And a 2-word-o...
by PeterH
19 Jul 2023 16:33
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Re: Tip searched: in a function get the *real* name of a parm

New beta: (in a script *without* "strange" dependencies) tested

Code: Select all

   $cbase = Self('base', -1);   $ccaption = Self('caption', -1);  // get info about caller
:arrow: :tup:

So: looks good! [cake] [tea]
by PeterH
19 Jul 2023 12:14
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Re: Tip searched: in a function get the *real* name of a parm

I would see it the other way - first of all I need the direct caller. (Though I could live with it.) If I get "Top Level", I wouldn't know how many levels it's away. So I would always use -1, and sometimes expand (loop) up to the end. I think it would feel more natural if this is 1, 2, ......
by PeterH
19 Jul 2023 11:54
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Re: Tip searched: in a function get the *real* name of a parm

The idea is good... ...but a change would bring problems for me: I use it in a routine that needs compatibility with (very) old and with new XY. (OK: per version() it *could* be done) And: if the most outer caller would be "XY", and caller of more outer levels were "" it even wou...
by PeterH
18 Jul 2023 23:44
Forum: Bug Reports
Topic: Undefined element of (assoc) array shown as 'string'
Replies: 5
Views: 238

Re: Undefined element of (assoc) array shown as 'string'

Prev :tup: was for implementing, now a :tup: for testing.

Is it so that I alone found > 80% of bugs with arrays? :whistle:
by PeterH
18 Jul 2023 23:38
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Re: Tip searched: in a function get the *real* name of a parm

OK: tested, :tup: In combination with my the private function caller() you once made for me it's even better! Sad that it's still inofficial - it works OK since maaany years, and it would be bad to loose it somewhen :ninja: Also sad: now I have some self-made problems, most about builtin debug stmts...
by PeterH
18 Jul 2023 11:57
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Re: Tip searched: in a function get the *real* name of a parm

:shock: To be true: I hadn't expected this :whistle: So it seems I have to update XY. If all is well there will be a function to debug array variables by showing the contents of each element. (And even allow to change it.) OK: you must include function calls in the script - but it *can* be very help...
by PeterH
08 Jul 2023 01:16
Forum: Wishes
Topic: Tip searched: in a function get the *real* name of a parm
Replies: 9
Views: 413

Tip searched: in a function get the *real* name of a parm

Imagine a script like: "Test" $a = "a|b|x"; debugv($a); ... function debugv($var) { ... } debugv() writes some info about the supplied variable, and it would be *very* helpful to do this under a title with the *real* var name, here '$a'. No idea, if this is possible at all. But d...
by PeterH
08 Jul 2023 01:12
Forum: Tips & Tricks, Questions & Answers
Topic: Question to InputSelect() style=1024
Replies: 5
Views: 303

Re: Question to InputSelect() style=1024

@jupe I've tested your "not a pipe" character - the results were rather strange: it occupies *2* characters - while (XY as well as my editor) only count 1. Result is that for the rest of the line the cursor is shown misplaced... :veryconfused: But 1 char before or after (don't remember) th...