Just do a case statement with VFP (or an if, if you don't allow NULLs), as in: docasecase vfpLogical = .t.
radiobuttonValue = "Yes"case vfpLogical = .f.
radiobuttonValue = "No"otherwise
radiobuttonValue = " "endcase
or you could just do the processing in the HTML page:
<input type="radio" name="RadioButton" value="Yes" <%=iif(m.vfpLogical,"checked","")%> >Yes<input type="radio" name="RadioButton" value="No" <%=iif(not m.vfpLogical,"checked","")%> > No
I hope my logic is right up there!
Kevin
PREFACE: Sorry if this question is already in the library, but I couldn't get the search functionality to work. I would try to ask a question and the date always defaulted to a week and when I tried to change the weeks, I always got "too many messages." I've used this forum before with no problems... perhaps someone could check it?
I want to use the "Expand Template" routine. It seems to use a simple TextMerge routine.
How can I take a VFP logical and make it work with a "Yes/No" radio button gang? Obviously, it needs to be able to show a "checked", but I don't see how this will work.
Thanks in advance!
-- John Kiernan