[Openroad-users] External Class Issue
Fabian Anderson
fabian.anderson at Fintechnix.com
Tue Jun 3 11:11:22 EST 2008
Hi Darren,
I am not sure what you are trying to do, but I can tell you
why the code works in .NET, but not in OR.
In .NET, the following line:-
mwp_clock.CardNumber(0) = Li_RFCardNew; // Failing compilation
means ... mwp_clock has an object attribute CardNumber. The CardNumber
object has a parameterized constructor, so the code reads as:-
"Create a CardNumber object by passing the constructor parameter 0 and
then assign that object with the Li_RFCardNew instance."
OpenROAD 4 does not have constructors and I don't think that OpenROAD
2006 has parameterized constructors.
This type of assignment won't work in OpenROAD.
Regards,
Fabian.
________________________________
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Darren
Harvey
Sent: Monday, 2 June 2008 4:50 PM
To: 'International OpenROAD Users'
Subject: [Openroad-users] External Class Issue
Hi
I am using an external class and have the following problem:
The external class has an array attribute that I can use to get values
from, and it compiles successfully, and gives me the correct information
at run-time. However when I try to set values in this attribute, I get
a compile-time error. This same structure of code works in .NET, but is
a problem in OpenRoad.
Li_rfCardNew = mwp_clock.CardNumber(0); // Compiles and works at
run-time
mwp_clock.CardNumber(0) = Li_RFCardNew; // Failing compilation
^
%% Error at line 281
E_W40271 Invalid target of assignment or BYREF.
Is there something basic I am doing wrong, or does this type of
assignment just not work in OpenRoad? Or is there some other cause that
I need to look at?
Thanks
Darren
Regards
Darren Harvey
MyWorkplace Solutions Pty Limited
Level 5, 11 Queens Road
Melbourne Victoria 3004
Ph. 1300 733 731
Mob. 0400 398 188
Fax. 03 9710 1112
Making Service our Priority
www.MyWorkplace.com.au
If you receive this email by mistake, please notify us and do not make
any use of the email. We do not waive any privilege, confidentiality or
copyright associated with it.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Specialist providers of back and front office systems for the financial services industry.
Featuring: Fintechnix(r)
Disclaimer:
Notice: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender,except where the sender specifically states them to be the views of Fintechnix Pty Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080603/1e06ba32/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1436 bytes
Desc: image001.jpg
Url : http://www.peerlessit.com/pipermail/openroad-users/attachments/20080603/1e06ba32/attachment.jpe
More information about the Openroad-users
mailing list