Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please confirm EXECSCRIPT() bug
Message
From
08/12/2003 12:09:38
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856725
Message ID:
00856858
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform