Search found 2762 matches
- 17 Jun 2023 12:55
- Forum: Wishes
- Topic: Wish for a Sub that shares it's vars with the caller
- Replies: 2
- Views: 177
Re: Wish for a Sub that shares it's vars with the caller
Sad to hear, but half expected. Don't know VBA. In XY it's like sub, but without creating a new environment, i.e. a new level of variables. (That's why it seems so siimple...) OK: this means a lot more work, a lot more planning, and maybe in the end let plans be too diffiicult. I'll see. Have a nice...
- 17 Jun 2023 00:34
- Forum: Tips & Tricks, Questions & Answers
- Topic: Question to InputSelect() style=1024
- Replies: 5
- Views: 295
Question to InputSelect() style=1024
I started successfully to use InputSelect() with style=1024 to specify a line like OperandName|13.2 where OperandName is the name of an operand, and 13.2 is a code for "what to display" when selected, i.e. operand 2 of command 13. Now an operand is [separator="|"] :veryconfused: ...
- 16 Jun 2023 12:52
- Forum: Wishes
- Topic: Wish for a Sub that shares it's vars with the caller
- Replies: 2
- Views: 177
Wish for a Sub that shares it's vars with the caller
(I dare to ask. Who asks can lose, who doesn't has lost.) (And, at chance, you just have heared what's it good for :whistle: ) Often in a script I have the need for the same logic in different places. In "general" that's where you use a function. *But:* often this code is connected to the...
- 16 Jun 2023 11:52
- Forum: Wishes
- Topic: Easier access of scripting command syntaxes
- Replies: 10
- Views: 3141
Re: Easier access of scripting command syntaxes
Seeing this picture I had to laugh :lol: It looks very like what I'm working on. :party: (No wonder, it shows output by InputSelect().) But it's: - generated, there's a script to generate a current basic data file - can show all commands on a general level (much like your picture) - can be searched ...
- 15 Jun 2023 12:09
- Forum: Bug Reports
- Topic: [fixed] Bug in foreach
- Replies: 4
- Views: 215
Re: [fixed] Bug in foreach
Thanks again: the bug is gone! And thanks for the demonstration :biggrin: That's why I often mock around for "simple, clear and unique logic"! (Though I didn't do here.) ForEach(array) says (array as variable), while ForEach(list) says (variable, list) From the first moment I saw this I th...
- 15 Jun 2023 00:35
- Forum: Bug Reports
- Topic: [fixed] Bug in foreach
- Replies: 4
- Views: 215
[fixed] Bug in foreach
Is it just me? Working with arrays *is* problem :masked: The following code is kind of "super-compressed" from real code. 1) a ForEach() with an array. OK 2) behind that an unrelated ForEach with a list. Abend = :bug: ! Delete 1st foreach, or skip it (incl it's continue): 2nd ForEach is OK...
- 14 Jun 2023 21:04
- Forum: Bug Reports
- Topic: [fixed] Bug on array
- Replies: 5
- Views: 181
Re: [fixed] Bug on array
OK: quick fix, quick test, quick OK! Though a question to stepping-info: in the final display of execution of an array instruction with a var as index , you at least show the new value of the array-variable, but not the real index but only the name of the index var. (What a sentence...) Could you ch...
- 14 Jun 2023 19:27
- Forum: Bug Reports
- Topic: [fixed] Bug on array
- Replies: 5
- Views: 181
Re: Bug on array
Thanks, good to hear!
Sometimes I don't listen to my own words - so I will have a try
Sometimes I don't listen to my own words - so I will have a try
- 14 Jun 2023 17:37
- Forum: Bug Reports
- Topic: [fixed] Bug on array
- Replies: 5
- Views: 181
[fixed] Bug on array
I just thought: give arrays a new chance :? So I had a line like echo "title($nr) = '$title[$nr]'."; $title[$nr] was shown as empty - though I definitly had set it to some text. Guess how much step; could help me on debugging... :blackstorm: OK: after several tests $tit = $title[$nr]; echo...
- 07 Jun 2023 12:34
- Forum: Script Exchange
- Topic: Create Folders Based on Filename and Move Files - Help Please
- Replies: 5
- Views: 551
Re: Create Folders Based on Filename and Move Files - Help Please
Hm - I think if moveto documents that it moves the selected items, it will move the (=all) selected items.
Be it in a loop or not.
So: did you read and understand the documentation?
Be it in a loop or not.
So: did you read and understand the documentation?
- 30 May 2023 23:12
- Forum: Bug Reports
- Topic: Mini-Bug (Error 5) on script error
- Replies: 2
- Views: 153
Re: Mini-Bug (Error 5) on script error
Maybe I should have protested louder then...
OK: I'll try to remember never to mention it again
OK: I'll try to remember never to mention it again
- 28 May 2023 12:30
- Forum: Bug Reports
- Topic: Mini-Bug (Error 5) on script error
- Replies: 2
- Views: 153
Mini-Bug (Error 5) on script error
This script: "Main : test" $s = "cmd(op)"; $w = "cmd"; $r = replace($s, $w, '', 1, 0); // $w -> '', a ^= A, start = 0 has a bug: start has to start with 1, 0 is not defined. Result: Error: 5 (0x00000005) Desc: Invalid procedure call or argument Dll: 0 Proc: script_EvalF...
- 26 May 2023 12:36
- Forum: Wishes
- Topic: Enhancement gettoken()
- Replies: 11
- Views: 443
Re: Enhancement gettoken()
OK: final Had a typo in *displayed* linecount. That confirms: times for 868 lines are same as for 4686 lines! Times for getTokenRange() are ~ 2-3 times of the others. Final result: The winner is: "2 * gettoken" It is full reliable, fast, and rather simple! Example: "Demo" $text ...
- 26 May 2023 00:45
- Forum: Wishes
- Topic: Enhancement gettoken()
- Replies: 11
- Views: 443
Re: Enhancement gettoken()
OK: the winner is: :party: No. First to say: it doesn't really matter - in general all methods but my old (with a gettoken() in a loop) are fine. But the first 2 have restrictions. 1) gettoken "from start" or "to end" is not to beat. But can't retrieve multiple tokens from the mi...
- 25 May 2023 17:16
- Forum: Wishes
- Topic: Enhancement gettoken()
- Replies: 11
- Views: 443
Re: Enhancement gettoken()
Thanks for the hint :tup: Can you translate the regexreplaces for me? Looks a bit as if he copies all from the first token to end, then from the 2nd to the end, and then deletes the 2nd from the 1st? (My var has about 5000 tokens = text lines.) Think I will compare it to the substr-variant, think th...