PRB: Script Error: Expected "End" but Found Unknown Token (155087)
The information in this article applies to:
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q155087 SYMPTOMS
When a RUNSCRIPT command is issued in FoxPro, the following error message
is returned:
Script error: Expected "End" but found unknown token
CAUSE
The script was created in the FoxPro file editor that places carriage
returns and line feed characters at the end of each line.
WORKAROUND
Use SimpleText editor or Script Editor to create script. Or, in FoxPro, do
one of the following to eliminate the line feed characters at the end of
each line:
- From the Tools menu, select Options, and then select the edit tab. Clear
the Save with Line Feeds checkbox.
- Use the FoxTools.CFM FxStripLF function. For more information about
using this function, please see the following article in the
Microsoft Knowledge Base:
109481 How to Strip Linefeeds from Exported (.TXT) Files
STATUS
This behavior is by design.
REFERENCES
"Visual FoxPro Installation Guide and Master Index," p.76.
Modification Type: | Major | Last Reviewed: | 12/14/1999 |
---|
Keywords: | kb3rdparty KB155087 |
---|
|