Params Check Box Items

Hello,

 
I am wanting to see if someone can provide sample code to show how to programically
assign Params Check box Items.  I want to build the Params Check box when the program
loads.  I am not familure with the code to allocate ref, value and that info used in the editior.
So a few lines of code to show how to load one menu item for checkbox type param would
be helpful.  Thank you for your help...
jim 

If you want to add an always visible checkbox, you could do this with the HTML:


Always visible checkbox:  <CONTROL TYPE="check" id="chk1" width="16">

and update its value programmatically with:

uses
  ParHTML;

var
  s:string;
begin
  s := paramlistbox1.Items[0];
  SetControlValue(s , 'chk1', 'TRUE');
  paramlistbox1.Items[0] := s;
end;