Tuesday, January 15, 2013

You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members

If you are receiving an error that "You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members." then make sure that your struct variable is structure everywhere.

An easy way to test your variable's datatype is that you put #IsStruct(VariableName)# in few places above and below the error line to check if your variable is consistently a structure. It is possible that you have re-declared your variable somewhere else.

No comments:

Post a Comment