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

Click here to load this message in the networking platform