May 13, 2013 at 2:26 pm
Hi All,
I have the following expression in a Precedence Constraint Editor
@Table_Number == "3290056" || @Table_Number== "3290057" || @Table_Number == “3290058” || @Table_Number == “3290059” || @Table_Number == “3290060” || @Table_Number == “3290061” || @Table_Number == “3290062” || @Table_Number == “3290063” || @Table_Number == “3290064” || @Table_Number == “3290065” || @Table_Number == “3290066” || @Table_Number == “3290067” || @Table_Number == “3290068”
but for some reason I get the following error:
Error at Constraint 46:Attempt to parse the expression "@Table_Number == "3290056" || @Table_Number== "3290057" || @Table_Number == “3290058” || @Table_Number == “3290059” || @Table_Number == “3290060” || @Table_Number == “3290061” || @Table_Number == “3290062” || @Table_Number == “3290063” || @Table_Number == “3290064” || @Table_Number == “3290065” || @Table_Number == “3290066” || @Table_Number == “3290067” || @Table_Number == “3290068”" failed. The token "■ " at line number "1", character number "79" was not recognized. The expression cannot be parsed because it contains invalid elements at the location specified.
Can anyone tell me why? I don't understand the character reference.
Regards:
Mordred
Keep on Coding in the Free World
May 13, 2013 at 3:57 pm
This is a very simple problem to solve.
Look at character 79 of that statement (as it tells you in the error message) and you will see this character : “
It is not a double quote : "
There are more of them in there as well...change them all to these : "
Edit: Also these : ” need to be changed to "
MM
select geometry::STGeomFromWKB(0x0106000000020000000103000000010000000B0000001000000000000840000000000000003DD8CCCCCCCCCC0840000000000000003DD8CCCCCCCCCC08408014AE47E17AFC3F040000000000104000CDCCCCCCCCEC3F9C999999999913408014AE47E17AFC3F9C99999999991340000000000000003D0000000000001440000000000000003D000000000000144000000000000000400400000000001040000000000000F03F100000000000084000000000000000401000000000000840000000000000003D0103000000010000000B000000000000000000143D000000000000003D009E99999999B93F000000000000003D009E99999999B93F8014AE47E17AFC3F400000000000F03F00CDCCCCCCCCEC3FA06666666666FE3F8014AE47E17AFC3FA06666666666FE3F000000000000003D1800000000000040000000000000003D18000000000000400000000000000040400000000000F03F000000000000F03F000000000000143D0000000000000040000000000000143D000000000000003D, 0);
May 14, 2013 at 8:25 am
Thank you very much for that. Most of that was copy/pasted from MS Word, which seems to be why the quotes are all weird. I've learned a lesson here and will most likely use Notepad++ to do editing like that. Thanks for pointing that out to me.
Regards:
Mordred
Keep on Coding in the Free World
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply