
Wolfie
Canada
Asked
— Edited
I have found a little bug that is in many of the EZ-Script Functions Examples
If i use the Examples from the list i get the following error message
Error on line 1: Missing String Quotes or Invalid Expression:
Example: ("") dont work
Example: ("") does work
The quotes that are in the Examples don't work and i cant seem to find them on my key board at all
But the ones that are on my key board do work
look completely different
but after I hit post they look the same :S
I hate fonts some days lol
Which EZ-Script command are you using?
The font should be irrelevant... There are no fonts in EZ-Script...
When posting code, always wrap the code in the code tag. You can see the code tag to the right of the edit form when writing a post.
It could also be a bug in the font settings.
TRY THIS FIRST:
go to control panel.
Click language.
make sure it says "English (Canada)" or English(US). If not change it.
when I copy the examples from the list of EZ-Script Functions Examples and paste into a script they don't work it seems all the quotes are different and don't work on till I replace them.
But when I paste them into here they look the same
As far as I know, the font is irrelevant since the EZ-Script dialogue uses plain text not formatted text. Copying and pasting simply copies and pastes the ascii characters without formatting.
Which examples are doing this? If you let me know one or two of them I can try those and double check but I just tried the
example and it worked fine.Code:
Also, where are you copying from? The forum posts? The EZ-Script help page? The EZ-Script help within ARC?
Whatever I try I cannot replicate this error.
Code:
... however if I change the quotes to these " (keyboard quotes) it then works..
Code:
Exec( EXE/Bat File, [parameters] )
that I clued into it on but seen it on others the other day that I cant remember what ones that was
The saywait was the one I did not have a problem with as I did not copy that one I typed it
I was coping the post because I seen that it was not posting it as I pasted it and was trying to see what was going on with it
You must copy and paste it into a script, though (do not type it)
Use the code tags to enclose code when posting code. Of course copying and pasting the example outside of the code tag will not work since it ends with a
Again, where is the example you are copying? Is it a forum post? Is it on the EZ-Script Manual page?
To be honest though, you shouldn't need to copy and paste any of the examples, they will largely be useless to your project. If you want examples to use or adapt in your project check the examples folder in ARC. The EZ-Script manual is meant for reference not for copying and pasting.
Now it's clear where you are copying from it's likely DJ can solve the small bug however I wouldn't feel right without pointing out that you should always check for correct formatting when copying from anywhere. Copying from the forums can sometimes result in "SmileyFace" being inserted into code, copying from anywhere can also insert line breaks into code which should not be there but whatever you are copying from has placed in there for formatting.
Ctrl C
Ctrl A
Ctrl V
Works every time
Right clicks don't always work but ctrl keys do
but as previously mentioned, when copying and pasting from different environments it's wise to check for formatting differences to ensure correct syntax. When printing the EZ-Script manual to PDF (before it was available online) I noticed a lot of line breaks were present rather than word wrapping which broke some examples if you were to copy & paste.
I'm sure DJ will look in to a solution to stop the confusion over this but I must also stress that the EZ-Script reference is a reference not a group of examples to be copied. Examples are in the examples folder for all commands.
I've seen it happen far to often and some that gave up could have been great scripters now if they did not get discouraged
One good thing about me posting on here so much is my spelling is getting a lot better
I did not see any red underlines in this post at all
Love it