>>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