0

次の Linq クエリで、「string から type 'double' への変換」エラーが発生します。

 Dim query = From Corrections In Test _
             Where Not Corrections.Expected_Bill = Corrections.Bill _
             Select Corrections.Account, _
             Corrections.Site, _
             Action = If(Corrections.Bill = "No billing PLI", _
                          +"This site has no billing PLI set up; " _
                          + "please add " + Corrections.Expected_Bill, _
                          +"This site has an incorrect billing PLI set up; " _
                          + "please remove " + Corrections.Bill + " and " _
                          + "add " + Corrections.Expected_Bill)

クエリの 'If(Corrections.Bill = "No billing PLI"' の部分が例外をスローしているように見えますが、すべてのフィールドがテキストであることを考えると、なぜこれが起こるのかわかりません。アイデアはありますか?ありがとう!

4

1 に答える 1

0

+コンマの後に余分があります。交換

+"This site has an incorrect billing PLI set up; " _

"This site has an incorrect billing PLI set up; " _
于 2013-09-26T19:15:31.897 に答える