View Issue Details

IDProjectCategoryView StatusLast Update
0005385MMW v4Framework: Scripts/Extensionspublic2013-12-10 00:31
ReporterBex Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version3.1 
Summary0005385: Ampersand char is not correctly shown when used in Scripting
DescriptionUsing Single "&" char in MediaMonkey Scripting trigger Delphi Shortcut mapping MM should Add Double "&&" to avoid it or correctly classified on wiki so that Scripters can use "&" normally to create scripting form shortcuts.

The SDB.MessageBox function doesn't display the ampersand (&) character. (This has always been the case, even in MM 2.5.) VBScript's MsgBox function displays them correctly.

Bug Example:
res = SDB.MessageBox( SDB.Localize(" This is '&' ampersand char"), mtError, Array(mbOk))

Correct Example:
res = SDB.MessageBox( SDB.Localize(" This is '&&' ampersand char"), mtError, Array(mbOk))
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=7&t=38035
TagsNo tags attached.
Fixed in build

Relationships

related to 0005576 closedLudek Ampersand Not correctly shown in Find More from same 

Activities

peke

2009-03-15 20:02

developer   ~0017108

This looks like standard issue of showing "&" char in Labels and it should be replaces with "&&" to avoid detecting "&" as hotkey start char.

Bex

2009-03-15 23:25

updater   ~0017109

That's indeed the case. :)
It would be nice though if the & character was displayed and not considered as a hotkey start character if it was followed by a space. Makes it easier when scripters want to display node names in various forms which have & in their names.

peke

2009-03-16 00:10

developer   ~0017110

Last edited: 2009-03-16 00:11

@Bex
Thx, for confirming. Most of programming languages uses && to determine if & is start of hotkey or it is & as char.

jiri

2009-03-16 13:35

administrator   ~0017113

Yes, this is how it has always worked, double ampersand is needed. I think that it's better in order to be consistent with the rest of the UI (like button captions). Also, changing this now would break some older scripts, so it seems to be better to leave it as is.

peke

2009-03-16 19:35

developer   ~0017121

I agree with Jiri, this is normal behavior for MM as it always been.

Scripting Documents needs to be updated.

Should I only update WIKI or it is needed in help also?

jiri

2009-03-16 20:04

administrator   ~0017122

Wiki is enough, scripting doesn't have such a coverage in our help.

peke

2009-03-17 05:12

developer   ~0017124

Assign to me for correcting Wiki Articles in those objects affected by this.

peke

2013-12-10 00:31

developer   ~0038632

Using '&&' is common standard now.