Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fix 'Syntax Error' message while EXE is running

Status
Not open for further replies.

rmdivsol

Programmer
Feb 12, 2008
1
US
On an INCONSISTENT basis, during 'runtime', a 'Syntax Error' message is displayed. It can occur when a program calls an external subprogram and the 'offending' line's code is always the scoping keyword "PUBLIC".

I'm thinking that there's some other condition going on that is causing the error message. I just don't know what that condition could be. Any ideas?

(The syntax error messages come up during runtime NOT during compilation.)

Thanks!
 
Do you know "PUBLIC xx" give you SYNTAX ERROR if you have already created that variable which was not public ?

Try (in program, not in Command window):

a=10 && var. will be created as PRIVATE
public a && then try recreate var. to the PUBLIC


Next will work correctly:

public a
a=10
public a


Tomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top