Index (zero based) must be greater than or equal to zero and less than the size of the argument list

前端 未结 4 1436
南方客
南方客 2021-01-26 10:32

I am trying to create a new table in a database which has a name of checkout and a check number which ive put in {0}. But when I run the program it comes up with the error shown

4条回答
  •  别那么骄傲
    2021-01-26 10:42

    In this sample you've called String.Format with a string containing place holders {0} but provided no arguments. You need to either remove the place holders or provide an argument to fill in the {0} slot

    If you want to literally put {0} into the string then don't use String.Format or properly escape them via {{0}}.

提交回复
热议问题