J
Jl_G_0
hey all.
Im building a webapp that writes data to a DB. But I dont know how
many fields the user will add so I need to know how can I reference
infinite variables like: var1, var2, var3, ..... var300 . The numbers
are sequential. What I want is, to use a variable to store the field
number (lets say intFields) and do something like this on the script:
var + intFields = somevalue ; //Of course this wont work...
What is the syntax in C# for that ? Or maybe what is the best way to
do it ?
Thx.
Im building a webapp that writes data to a DB. But I dont know how
many fields the user will add so I need to know how can I reference
infinite variables like: var1, var2, var3, ..... var300 . The numbers
are sequential. What I want is, to use a variable to store the field
number (lets say intFields) and do something like this on the script:
var + intFields = somevalue ; //Of course this wont work...
What is the syntax in C# for that ? Or maybe what is the best way to
do it ?
Thx.