1
如何使用Option Strict On測試DataGridViewCell.Value?如何使用Option Strict On設置DataGridViewCell.Value
If DataGridViewCell.Value = "some value" then
給出了錯誤:
Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
編輯:
的解決方案是:
If DataGridViewCell.Value.ToString = "some value" then