Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report preview issue
Message
From
31/07/2007 13:46:04
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01244625
Message ID:
01244945
Views:
17
>>Thanks for the help so far, you gave me some good pointers.
>>
>>For now I solved the problem partly with the following code. It still causes a problem when one line contains an error but at least it does not stumble on the missing parameter statement if the code is empty:
>>
>>LOCAL lnLines, lnNr
>>*
>>lnLines = ALINES(laLines, ALLTRIM(EVALUATE(THIS.AliasName + ".reSettings")),.T.)
>>*
>>FOR lnNr = 2 TO lnLines
>>	TRY
>>		EXECSCRIPT(laLines[1] + CHR(13) + CHR(10) + laLines[lnNr],THIS.oFormInfo)
>>	CATCH TO loError
>>	FINALLY
>>	ENDTRY
>>ENDFOR
>>
>
>We still haven't figured the source for the original problem. Can you at least log the error in CATCH block and also current set('talk') setting?

The set('talk') setting is OFF in the method as well as in the execscript:
MESSAGEBOX(SET('TALK'))
EXECSCRIPT("ln=1"+CHR(13)+CHR(10)+"MESSAGEBOX(SET('TALK'))","loTest")
MESSAGEBOX(SET('TALK'))
Gives an error "No Parameter Statement found" but the message shows OFF three times.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform