E. Crane Computing Support Forum

Providing support for all E. Crane Computing products, including POWERGEN, PBSERVICE, HARPB, VERSIONEDIT, PBLRESCUE, and PBLEXPLORER.

You are not logged in.

#1 2005-04-13 14:11:44

anewhart21
Guest

Re: PB7 -> Check Box Third State

I hope this is the correct area to post this question.  If not sorry, if so please help.  I have looked every where and can find nothing. 

I am trying to work with making a check box a halfchecked check.  By doing this I need to use the ThirdState Property.  The way I have it set up is 0=off, 1=on, and 2=halfchecked.  It works currently by going 
0->2->1->0->2->1...order but I want it to go from 0->1, 1->2, and 2->1 only never 0->2 and 2->0.  Any ideas or suggestions on where to look?

I have tried to hard code it the way I want by doing the below chunk in the itemchanged event of the dw:
lv_s_column_name = dwo.name
lv_s_original = this.getitemstring(row, lv_s_column_name)
//Change the data to be the correct value.  The way PB did it was 0->2->1->0->1->2....  We
//need it to go from 0->1, 1->2, 2->1 only.   
//0=blank; 1=yes; 2=previously checked
IF lv_s_original = ""0"" then
    data = ""1""
elseif lv_s_original = ""1"" then
    data = ""2""
elseif lv_s_original = ""2"" then
    data = ""1""
end if
this.setitem(row, ""pub_ind"", data)

#2 2005-04-14 07:01:22

Phil
Guest

Re: PB7 -> Check Box Third State

Hi Amanda,

You may get an answer here, but this forum more deals with Build issues.

Regards,

Phil

#3 2005-04-14 09:14:14

anewhart21
Guest

Re: PB7 -> Check Box Third State

Thanks for letting me know.  I was not sure what all this forum included.  If anyone here has any ideas those please let me know.  Everything I have found so far is not working for me.   

Board footer