It is currently Wed Aug 20, 2014 6:39 am




Post new topic Reply to topic  [ 4 posts ] 
 Data structure expression 
Author Message
General
General

Joined: Thu Jun 03, 2010 11:26 am
Posts: 189
Post Data structure expression
Created a data structure where one of the tags, and integer, incorporates an expression. Created several instances but, what was found is that if you override the expression in the instance the tag will error with;
RuntimeException: Syntax Error on Token: 'End of Expression' (Line 0 , Char 0). Deleting the expression in the data structure does not clear the error in the propagated instances. The tag icon in the data structure still has the expression icon over layed on it.


Mon Apr 30, 2012 11:08 pm
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 3:43 pm
Posts: 2491
Post Re: Data structure expression
What did you override the expression with? What is the base expression? I just did a quick test and it worked, so I think either the instance expression must be somehow marked as overridden, but with an empty expression.

And I don't quite understand what you mean when you say that you're deleting the base expression... wouldn't this result in the instances having a blank expression (unless they were overridden, of course), which would in turn lead to this error? (Note: the error, end of expression, char 0, is caused by an empty expression value)

Regards,

_________________
Colby Clegg
Inductive Automation
Software Development


Tue May 01, 2012 8:28 am
Profile
General
General

Joined: Thu Jun 03, 2010 11:26 am
Posts: 189
Post Re: Data structure expression
The expression was deleted in the base. It was just a simple expression to experiment with UDT's. Wouldn't it propagate that change to the incidences?


Wed May 02, 2012 3:14 pm
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 3:43 pm
Posts: 2491
Post Re: Data structure expression
Hi, sorry for the delayed response.

I'm not quite sure I follow: you say that you deleted the expression, and the error you're reporting is what you would get with a blank expression... doesn't that make sense?

Or do you mean that the base has no expression, but the instances do, and they still error? Or did you expect that deleting the expression would clear the overrides?

Regards,

_________________
Colby Clegg
Inductive Automation
Software Development


Wed May 09, 2012 3:30 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: diat150, Javachon and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: