[Openroad-users] E_WT0057 An internal error has occurred ...

Kim Ginnerup kgi at bording.dk
Fri Feb 1 18:43:20 EST 2008


Better late than never.

This is the curObject in the local procedure.
Before OR 2006 you needed to send curObject as a parameter to a local procedure to gain access to the class attributes.

In 2006 the restriction is partly lifted although undocumented. There is one catch.
You need to declare at least one local variable in the class script to make this work!
If you have no local variables declared you need to formally declare curObject as a parameter.

Ex.: No local variable declared
Procedure p(
            curObject = $_ComponentName default null;
)= {
            Curobject....

Ex.: Local variable declared
Procedure p()= {
            Curobject....


Kim
________________________________
Fra: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com] På vegne af Pete Wilkinson
Sendt: 21. januar 2008 12:02
Til: International OpenROAD Users
Emne: Re: [Openroad-users] E_WT0057 An internal error has occurred ...

on reflection, I guess its the CurObject in the local procedure, I guess its a scope issue of sorts?

Though it compiles no problem ...

I'm changing the local proc to a private method
-----Original Message-----
From: openroad-users-bounces at peerlessit.com [mailto:openroad-users-bounces at peerlessit.com]On Behalf Of Pete Wilkinson
Sent: 21 January 2008 10:55
To: openroad-users at peerlessit.com
Subject: [Openroad-users] E_WT0057 An internal error has occurred ...

I have a local procedure in a class to which I have added new code, and I've started getting this:

        E_WT0057 An internal error has occurred in routine initvars(invalid if_declarer).

OR crashes, and reports the error in the trace, as soon as the local procedure is called.  Commenting out my code bit by bit, I've found it seems to dislike the following simple IF statement:

        IF CurObject.myarray.LastRow > 0 THEN ...

Before the local proc call, in the debugger I check the array and all seems ok, it has 2 rows in it, LastRow is set ok, etc.

I'm somewhat confused ....

**********************************************************************



SunGard Public Sector Limited, Marshfield, Chippenham, Wiltshire  SN14 8SR
Telephone: 08456 041999,  Fax: 08456 052999

Registered Office:  33 St Mary Axe, London EC3A 8AA.  Registered in England No.
1593831 VAT Reg No. GB 810 9546 34



**********************************************************************



This email and any files transmitted with it are confidential and

intended solely for the use of the individual or entity to whom they

are addressed. If you have received this email in error please notify

the system manager.



This footnote also confirms that this email message has been swept by

MIMEsweeper for the presence of computer viruses.



www.mimesweeper.com

**********************************************************************



This message has been checked for all known viruses on behalf of SunGard Public Sector by MessageLabs.

http://www.messagelabs.com or Email: mailsweeper.info at vivista.sungard.com

For further information http://www.sungardps.co.uk

This message has been checked for all known viruses on behalf of SunGard Public Sector by MessageLabs.

http://www.messagelabs.com or Email: mailsweeper.info at vivista.sungard.com

For further information http://www.sungardps.co.uk

This message has been checked for all known viruses on behalf of SunGard Public Sector by MessageLabs.

http://www.messagelabs.com or Email: mailsweeper.info at vivista.sungard.com

For further information http://www.sungardps.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080201/690f24ae/attachment.html 


More information about the Openroad-users mailing list