Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please confirm EXECSCRIPT() bug
Message
De
08/12/2003 12:09:38
 
 
À
08/12/2003 04:11:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856725
Message ID:
00856858
Vues:
21
Sorry, but you are wrong.
RETURN TO muutsead
MUST return to the NEXT line in calling program,
WITHOUT changing the cres !



>Hi,
>
>Help states: The return value is the value returned by the script. If the script returns no value Foxpro returns .T.. You're not returning a value just (attempting) to make an assignment so .T. seems right - but then I'd also expect the same for EXECSCRIPT('x') !
>
>Regards,
>Viv
>
>>>
>Some errors change EXECSCRIPT() return value
>Repro:
>
>PROCEDURE muutsead
>cres = 'Do not touch'
>ON ERROR  seterror()
>cres = EXECSCRIPT('x=y')
>MESSAGEBOX(cres)
>
>PROCEDURE seterror
>RETURN TO muutsead
>ENDPROC
>
>Result observed:
>.T.
>>>
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform