I have a situation on a form, where I do the following (pseudo code)
for k = 0 to 128 do
if eval(FormName & ".Radio_" & k) then
...
end if
end for
What I am trying to do is cycle from 0 to 128. IN doing so I have several radios on the html page that have the name with syntax:
FormName & ".Radio_" & k
When I alert the returned value, I receive a value of [object] when the button is found and "undefined" when it is not found. I want to exclude the "undefined" ones from the ... processes. What kind of coparison can I use for this, or is there a better way completely?
for k = 0 to 128 do
if eval(FormName & ".Radio_" & k) then
...
end if
end for
What I am trying to do is cycle from 0 to 128. IN doing so I have several radios on the html page that have the name with syntax:
FormName & ".Radio_" & k
When I alert the returned value, I receive a value of [object] when the button is found and "undefined" when it is not found. I want to exclude the "undefined" ones from the ... processes. What kind of coparison can I use for this, or is there a better way completely?