scripting: numbered arguments QA

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: scripting: numbered arguments QA

Post by PeterH »

I'm afraid that I've got it now. Let me try:
- 5:=2 specifies a value for the 6th variable (i.e. pos 5)
- it is at pos 3, and counts as such (i.e. really occupies this position)
- so the next (non-pos) operand counts as pos 4

Sorry to say: I never would have expected the last 2 lines. Till now I never saw a non-pos operand "shift" the meaning of pos operands - always saw them ignored in sense of position. So I understand my misunderstanding :whistle:

From this view I would never ever code a pos operand right of a numbered operand. :oops:

Edit: would be interesting to here who ever did that :P
Win11 Pro 223H2 Gerrman

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: scripting: numbered arguments QA

Post by highend »

<-
One of my scripts helped you out? Please donate via Paypal

Post Reply