Search found 2771 matches

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

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: 364

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: 465

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: 364

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: 465

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: 465

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: 414

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: 364

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...
by PeterH
02 May 2023 17:44
Forum: Wishes
Topic: A function or variable to query stepping mode
Replies: 7
Views: 465

A function or variable to query stepping mode

Hi! A new wish. Hopefully easy to make? (Didn't know about or find something for this.) In stepping for debug there are often several stmts where stepping isn't needed. Idea: $oldstep = 0; if [stepping-mode] { // <= that's it! $oldstep = 1; unstep; } ...many stmts... if $oldstep {step;} Would be ver...
by PeterH
23 Apr 2023 17:05
Forum: Wishes
Topic: Wishes for arrays
Replies: 14
Views: 832

Re: Wishes for arrays

1) for your fix I'm convinced that you changed array() to return a pointer to a *new* created empty array, as it did before for (all) non-empty arrays. 2) short form: a) the most basic use for variables is eg $b = $a; b) this is not possible, if $a contains an array. (for the same reason) a function...
by PeterH
22 Apr 2023 21:44
Forum: Wishes
Topic: Wishes for arrays
Replies: 14
Views: 832

Re: Wishes for arrays

As I replied today to "Script Exchange / 2 array variables seem to be the same array", but want to continue with another view of "arrays", I think it's better to continue in this thread. The problem I see is that arrays *seem* to be based on "variables", but it only sim...
by PeterH
22 Apr 2023 12:47
Forum: Script Exchange
Topic: 2 array variables seem to be the same array
Replies: 3
Views: 464

Re: 2 array variables seem to be the same array

Sad to say, but you shouldn't expect array variables to work as you'd expect from variables.
(And I think that's bad!)

Especially you can see it on how explode() and implode() work.

If I'm polite, from my point of view I'd call it strange.

Really sad to say so.
by PeterH
16 Apr 2023 21:15
Forum: Script Exchange
Topic: How to test a variable to be numeric
Replies: 5
Views: 485

Re: How to test a variable to be numeric

OK - at least what we think about "how the script sees the vars" seems to be identical :tup: I could have written a little routine, a loop that checks every char for digit etc, but really didn't want to. (Though it would have been faster for me than to learn regex :titter: ) As your regex-...
by PeterH
16 Apr 2023 19:47
Forum: Script Exchange
Topic: How to test a variable to be numeric
Replies: 5
Views: 485

Re: How to test a variable to be numeric

Hm - I thought that in XY *all* variables are strings - but if all chars are 0-9, +, - they can be treated as int, and calculated with. And if theres a dot it must be float. I hope I'm right? Can you show that for $a=15; and $b="15"; there's any difference between both? At least if you add...