This topic is locked

Checkbox question

10/3/2004 4:01:01 PM
ASPRunnerPro General questions
-_MP-_ author

Hi.
I´v got 2 question.
I´m using checkboxes, is there a way to make them "checked" as default?

And is it possible to change the words "yes" or "no" to whatever I want?
Thanks

Sergey Kornilov admin 10/6/2004

Hi,
currently you cannot assign default values to checkbox control. I will add this feature in the next update.
To display something different instead of Yes or No you can modify include/..._aspfunction.asp file for this purpose:

function GetData(Field, Format)

' long binary data?

if IsBinaryField(Field) then

GetData = "LONG BINARY DATA - CANNOT BE DISPLAYED"

elseif Field.Type = 11 then

if IsNull(Field.Value) then

  GetData="No"

else

  if Field.Value = "True" or CInt(Field.Value)<>0 then

  GetData = "Yes"

  else

  GetData = "No"

  end if

end if