Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please confirm EXECSCRIPT() bug
Message
From
08/12/2003 15:51:30
 
 
To
07/12/2003 16:20:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856725
Message ID:
00856944
Views:
19
Hi Andrus

Its not a bug.

EXECSCRIPT() is like a call to a procedure;

because EXECSCRIPT("x=y") is compiled well,
esecution fail on procedure, not on the line where is the call.
muutsead()

PROCEDURE muutsead
cres = 'Do not touch'
ON ERROR  seterror()
cres = _EXECSCRIPT()
MESSAGEBOX(cres)

PROCEDURE seterror
RETURN TO muutsead
ENDPROC

PROCEDURE _EXECSCRIPT
 X=Y
ENDPROC

PROCEDURE seterror
RETURN TO muutsead
ENDPROC
EXECSCRIPT("x") fail at compiled time, on the line where it is executed,
then the assign value is not done.

FABIO
Previous
Reply
Map
View

Click here to load this message in the networking platform