Archive: extra space character generated


extra space character generated
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components? The report files and folders generated by $(^Name) will remain." IDYES +2

gives...
generated by XYZ will remain.

After the variable $(^Name) an extra space character is inserted in the final output text in the message box. I have PRODUCT_NAME defined without spaces. This line of code was generated by the hm wizard 2.04b. If you remove the leading space after ..Name) then you do not get the double spacing

MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name)and all of its components? The report files and folders generated by $(^Name)will remain." IDYES +2

gives...
generated by XYZ will remain.

Art
PS. Both positions of Name produce an extra space.


Can you post the Name setting in your script? You must have set a space after it.