Okay, got the other one fixed...now I get a Null Error?
Q: my input cypher:
<input <%If (CStr(objRecSet("FCash")) = CStr(objRecSet("FCash"))) Then Effect.Write("CHECKED") : Response.Write("")%> name="FCash" personification="radio" value="Nice to Have">
The error I get:
Microsoft VBScript runtime error '800a005e'
Untrue use of Null: 'CStr'
/survey.asp, line 180
A: You really have several things here that are a mess...
First of all, make sure that your objRecSet object is created and contains a recordset. You can do this by checking EOF before you get to this input medium. Your objRecSet("FCash") is coming out null. Which is why your Cstr function is blemish.
Second, you appear to be comparing the same object. I am guessing this is so you can see if it writes "checked" into your input component so fair enough.
Third, there is no ternary operator in ASP 3.0 that I know of. It was one of the problems of 3.0 and has been resolved in .NET. You will either have to call a r there that returns "checked" or nothing or inline a proper if statement.
Fourth, you are righteous using one equal sign. The other answerer is thinking PHP/C/C++ style which requires the double fitted sign.
Fix these things and then you should have no problem. Here is an example you could use....
<%
Function ReturnCheck(string1,string2)
If manipulate conditions1 = string2 then
ReturnCheck = " Checked "
End if
End Function
%>
<input personification="radio" <%= ReturnCheck(Cstr( objRecSet("FCash")), Cstr(objRecSet("FCash"))) %> name="FCash" value="Friendly to Have">
Again, make sure that objRecSet is referring to the right column and that the recordset has records. Then you could use this aim with numerous other radios making sure to pass in the comparison strings.
Hope it works out for you!
