Scripting Bugs

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Scripting Bugs

Post by PeterH »

highend wrote:@PeterH
No, you're misunderstanding the whole thing. Sorry!
You are right!

I should have used my glasses - he's explicitely talking about nowdoc. But I never saw a reason to use nowdoc - so I didn't know/recognize the syntax, i.e. the meaning of the quotes, and thought about heredoc.

So forget what I said.

admin
Site Admin
Posts: 66159
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting Bugs

Post by admin »

Confirmed and fixed. Thanks! :tup: :cup:

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Scripting Bugs

Post by Filehero »

Code: Select all

  $var = "Test";
  msg("$var hallo");
  msg("$var_hallo");
Why is $var not resolved for the second msg call?

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

Re: Scripting Bugs

Post by highend »

Mh?

$var_hallo is a totally different variable and if you don't initialize it first it will display it's variable name
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Scripting Bugs

Post by PeterH »

"_" is an allowed letter for a variable name - so the complete expression is seen as reference to a variable.
" " is not allowed for a variable name - so the interpreter can see where the name ends.

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Scripting Bugs

Post by Filehero »

:oops: :oops: :oops:

Sorry ...

Arghh, stupid me :blackstorm:

Post Reply