Var vsuccess as Int
If @Update and Follow_up ="" then
vSuccess = @SelectTreeItem("gha!forms!add data!Masterwo!Masterwo")
Follow_up is a checkbox and when I click in it it performs the above, I can't get the logic of it (follow_up="") why don't it read follow_up = -1
I working on a form where I have two checkboxes and according to the one checked the programming will do a (if, then else) I'm having trouble getting it to fire.
This is the code I'm playing around with, I think my problem is in understanding how checkboxes work.
If @ADD then
{
If LE11 = -1 then
Xpost(@fn,LE2,"Master Time Form!LE1",LE9,"LE7","SUB")
}
Else
If LE11 <> -1 Then
{
Writeln("Checkbox=0")
}
Else
If LE13 = 0 Then
{
Writeln("Checkbox = 0")
//Xpost(@fn,LE2,"Master Time Form!LE1",LE9,"LE6","SUB")
}
else
If LE13 = 1 Then
{
Writeln("Checkbox = 1")
}
Well I got it working, but would appreciate it if someone could post some examples of using checkboxes in programming.
Any Help Appreciated !!