Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please confirm EXECSCRIPT() bug
Message
De
08/12/2003 15:51:30
 
 
À
07/12/2003 16:20:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856725
Message ID:
00856944
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform