.net - expression expected '{' - having string and int together -


making table, when added rows, got error,

code is:

    each row datarow in table.rows        table2.rows.add ({row(0), row(1)})       next 

expression expected

     table2.rows.add (***{****row(0), row(1)}) 

am having error saying expression expected on "{"

i think no why is, because row(0) string , row(1) int.

therefore how apply 1 being string , 1 being int.

datatable.rows.add method requires array of objects (one object each column) code simply

table2.rows.add (row(0), row(1)) 

by way, if trying copy 1 table take @ built-in methods datatable.merge or datatable.copy datatable.loaddatarow , datatable.importrow


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -