dong_xin00
03-24-2005, 08:20 AM
I have a view like:
<view datapath="component" x="$path{'x/@value'}" y="$path{'y/@value'}">
which works fine, however, I want to set the x and y value by the current one sub or add some integer value, I tried:
x="$path{'x/@value'}-5"
which will recieve an error:
The value of the 'x' attribute uses a deprecated syntax. Use x="${$path{'x/@value'}-5}" instead.
then I tried
x="${$path{'x/@value'}-5}"
which will recieve an error:
Syntax error: the token "{" was not expected at this position.
I am wondering what was wrong or it can not be done in this way?
Thanks in advance.
<view datapath="component" x="$path{'x/@value'}" y="$path{'y/@value'}">
which works fine, however, I want to set the x and y value by the current one sub or add some integer value, I tried:
x="$path{'x/@value'}-5"
which will recieve an error:
The value of the 'x' attribute uses a deprecated syntax. Use x="${$path{'x/@value'}-5}" instead.
then I tried
x="${$path{'x/@value'}-5}"
which will recieve an error:
Syntax error: the token "{" was not expected at this position.
I am wondering what was wrong or it can not be done in this way?
Thanks in advance.