Declare and assign multiple string variables at the same time

前端 未结 10 2293
醉话见心
醉话见心 2020-12-08 13:03

I\'m declaring some strings that are empty, so it won\'t throw errors later on.

I\'ve read that this was the proper way:

string Camnr = Klantnr = Ord         


        
10条回答
  •  猫巷女王i
    2020-12-08 13:23

    Try with:

     string Camnr, Klantnr, Ordernr, Bonnr, Volgnr, Omschrijving;
     Camnr = Klantnr = Ordernr = Bonnr = Volgnr = Omschrijving = string.Empty;
    

提交回复
热议问题