Search found 2762 matches

by PeterH
25 May 2023 14:29
Forum: Wishes
Topic: Enhancement gettoken()
Replies: 11
Views: 447

Re: Enhancement gettoken()

OK: full success regarding exec-time: full speed! (Had expected it to be just a bit slower.) Negative: the code doesn't really get better by switching between substring and token handling. (Till now I didn't have/use any character info about the text data, only tokens.) I think you once added token-...
by PeterH
25 May 2023 11:53
Forum: Wishes
Topic: Enhancement gettoken()
Replies: 11
Views: 447

Re: Enhancement gettoken()

OK thanks, will have a look. substr() is OK. For strpos() I must check the situation: I must be sure to exactly find the correct data - in text, where some parts can be repeated. I will see... For this there are other functions missing: translate char-number to token-nbr and vice versa. In the momen...
by PeterH
24 May 2023 12:11
Forum: Wishes
Topic: Enhancement gettoken()
Replies: 11
Views: 447

Enhancement gettoken()

I have a wish regarding the Index operand of gettoken(). The wish is to enhance Index to be a range, i.e. gettoken($string, "$from|$to", $sep) (OK: count would do as well. Could even be an additional operand?) The format is just an idea/example - I know that it's not ideal. Reason: perform...
by PeterH
15 May 2023 21:12
Forum: Wishes
Topic: Wish: an XY-routine to tell state of a var
Replies: 7
Views: 396

Re: Wish: an XY-routine to tell state of a var

Again: used it without testing.

Only to test for integer or string.

As expected: OK!

Thanks again! :beer:
by PeterH
15 May 2023 21:08
Forum: Wishes
Topic: Error on stepping-state after end of a function
Replies: 5
Views: 351

Re: Error on stepping-state after end of a function

Code: Select all

   ...
   $cstep = <get stepping>;
   $dings = f($cmd1, ...);
   if $cstep { step; }
   ...
Doesn't it look strange? :roll:
But at least: it helps to make things work as they should! :ugeek:
(Without it I sometimes had a 'runaway'! :blackstorm: )
by PeterH
15 May 2023 20:58
Forum: Wishes
Topic: A function or variable to query stepping mode
Replies: 7
Views: 453

Re: A function or variable to query stepping mode

Hm - didn't test it.

Just used it.

Works fine 8)

Thanks again!
by PeterH
13 May 2023 22:13
Forum: Wishes
Topic: Wish: an XY-routine to tell state of a var
Replies: 7
Views: 396

Re: Wish: an XY-routine to tell state of a var

...and a third :beer: for this and the stepping-var!

As I plan to work with it on beginning of the week, I suppose .0005 will correct the negative bug (pun intended) till then?
by PeterH
13 May 2023 22:06
Forum: Wishes
Topic: Error on stepping-state after end of a function
Replies: 5
Views: 351

Re: Error on stepping-state after end of a function

As said in the other thread: thanks a lot!
(And more :beer: - though it should be red wine)
by PeterH
13 May 2023 22:02
Forum: Wishes
Topic: A function or variable to query stepping mode
Replies: 7
Views: 453

Re: A function or variable to query stepping mode

Hey - that sounds good!
So fast, and together with VarType() :biggrin:
(In the moment I will not have problems with negative values - all positive :whistle: )

Time is a bit restricted - will go to test and use about beginning of next week.

Thanks for the good service :beer:
by PeterH
13 May 2023 12:52
Forum: Wishes
Topic: Error on stepping-state after end of a function
Replies: 5
Views: 351

Re: Error on stepping-state after end of a function

Well, currently the stepping mode is totally scope unaware. Though if calling a function with stepping=on, the function runs *without* stepping. And if I got it right: after return from the non-stepping function the prev mode will continue. So it seems not just be all or nothing... Now, if a functi...
by PeterH
07 May 2023 19:21
Forum: Wishes
Topic: A function or variable to query stepping mode
Replies: 7
Views: 453

Re: A function or variable to query stepping mode

In short to say: YES :!:
by PeterH
07 May 2023 15:49
Forum: Wishes
Topic: A function or variable to query stepping mode
Replies: 7
Views: 453

Re: A function or variable to query stepping mode

Hi klownboy, Just had a look, and remembered it right: the documentation of the step cmd says: Remarks (1) You can manually enable Step Mode using menu Scripting | Step Mode or the Step Mode toolbar button. When manually enabled, you will be prompted before each command is executed, and commands ste...
by PeterH
06 May 2023 13:03
Forum: Wishes
Topic: Wish: an XY-routine to tell state of a var
Replies: 7
Views: 396

Wish: an XY-routine to tell state of a var

High Don! Once you said "I read everything". (I'd understand if it has changed.) So a wish born from a question in Scripts-section: It would be fine if we had an XY-function, that gives info about the "state" (in real it's "contents") of a variable. There are situations...
by PeterH
06 May 2023 12:31
Forum: Wishes
Topic: Error on stepping-state after end of a function
Replies: 5
Views: 351

Error on stepping-state after end of a function

1) If, while stepping = on, a function is called, it starts *without* stepping. I think this is fine. 2) If, in the function: - there is a step; - (maybe after come Continue) you click "Continue without stepping" - and somewhen return to the caller => it continues *without* stepping! For m...