PrimalScript is randomly adding characters to end of VBS file

Support for all customers who have purchased a PrimalScript product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
sapien@leafgrove.com
Posts: 17
Joined: Wed Apr 25, 2012 8:29 pm

PrimalScript is randomly adding characters to end of VBS file

Post by sapien@leafgrove.com » Fri Sep 14, 2018 10:41 am

Regarding this: viewtopic.php?f=11&t=12927

The same happens to me

I replicated it by making and then undoing a lot of changes, perhaps a dozen lines of code.
I saved and ran, I got an error:

Microsoft VBScript compilation error: Invalid character

The invalid text is not visible in the file, but is the last line. I didn't think to save it, but it was similar to "a?????@????" (without the quotes)
Removing the last line does not remove the problem.

The last line of code prior to the invalid characters is simply an End Sub statement.

Close and re-open and the text is visible and can be removed.

Saving the file, then running is successful

User avatar
Olga_B
Site Admin
Posts: 65
Joined: Mon May 15, 2017 9:06 am

Re: PrimalScript is randomly adding characters to end of VBS file

Post by Olga_B » Fri Sep 14, 2018 11:44 am

Thanks for reporting the issue.
It has been sent to the proper place for evaluation and correction

User avatar
Alexander Riedel
Posts: 6671
Joined: Tue May 29, 2007 4:43 pm

Re: PrimalScript is randomly adding characters to end of VBS file

Post by Alexander Riedel » Thu Sep 20, 2018 2:43 am

I still cannot reproduce that. Same question as to the original post, what is the encoding of your file?
Alexander Riedel
SAPIEN Technologies, Inc.