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

前端 未结 4 1435
南方客
南方客 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 11:06

    You haven't passed a string to string.Format that it needs to place into your {0} place-holder. Are you missing a variable?

    ...string.Format("your long format string {0}", someMissingStringVar);
    

提交回复
热议问题