| Author |
Accessing Message attribute in expression shape
|
|
| Neil Hewitt 2005-03-09, 5:50 pm |
| whenever i try to assign a variable the value from a message in an expression
i get illegal dotted name whenever i try to assign an attributes value to a
defined variable.
the attribute from the message schema is an integer and the variable is of
int16. i pomoted the property in the schema and ithougth taht was all that
was required. is there something else i am missing ?
| |
| Neil Hewitt 2005-03-09, 5:50 pm |
| Seems to have corrected itself .. not terribly sure what i did - but now i
get the errpr cannot implicitly convert system.decimla to system.int16.
Curious because i have defined the variable that i am assigning the value to
as Int16 and the Message attribute is off type integer.
what could cause this ?
"Neil Hewitt" wrote:
> whenever i try to assign a variable the value from a message in an expression
> i get illegal dotted name whenever i try to assign an attributes value to a
> defined variable.
>
> the attribute from the message schema is an integer and the variable is of
> int16. i pomoted the property in the schema and ithougth taht was all that
> was required. is there something else i am missing ?
| |
| Ben Cuttriss 2005-03-10, 8:48 pm |
| Neil - not sure why you are getting your decimal error, but try using the
System.Convert class whenever doing type conversions. Pass it the variable
on the ToInt16 function and voila - it will do it.
Regards
Ben Cuttriss.
"Neil Hewitt" wrote:
[vbcol=seagreen]
> Seems to have corrected itself .. not terribly sure what i did - but now i
> get the errpr cannot implicitly convert system.decimla to system.int16.
> Curious because i have defined the variable that i am assigning the value to
> as Int16 and the Message attribute is off type integer.
>
> what could cause this ?
>
> "Neil Hewitt" wrote:
>
|
|
|
|