Good evening,
I’m trying to figure a way of defining a variable in JScript so I can adjust more easely a translation from VB.Net I must do.
The var is of the type Variable1[index].property, that is: it goes from index 0 to n, and each one has their set of values like:
Variable1[0].Name = "One"
Variable[0].Value = 12
Variable1[0].VarType = "something"
Variable1[1].Name = "Two"
Variable[1].Value = 1.222
Variable1[1].VarType = "whatever"
etc.
If I create a var like this:
var obj = {
Name: "dummy",
Value: 0,
VarType: "dummy"
}
how can I create an array with these fields (or more) in each array index?
Kind regards