Hello
I have 2 flowfields type (EXISTS) - boolean
FldExist1,FldExist2
On form I want to show only one field
I add textbox to tablebox and set SourceExpr = NewField (Variable)
IF FldExist1 Or FldExists2 Then
NewField:=TRUE
ELSE
NewField:=FALSE
Whats the best option for it ?
Form is list type form, FldExist1,FldExist2 is not visible.
Thanks
0
Comments
Trans.GET("No.");
Trans.CALCFIELDS("Sem In departure","Tractor In departure");
IF (Trans."Sem In departure"=TRUE) OR (Trans."Tractor In departure"=TRUE) THEN
InDeparture:=TRUE
ELSE
InDeparture:=FALSE;
CurrForm.UPDATECONTROLS;
Then, on your list form, you just add a textbox to the listbox, and in its SourceExpr, you enter MyTable.NewField.
RIS Plus, LLC
MVP - Business Apps
That is more elegant code.
Just put in the SourceExpr
(FldExist1) Or (FldExists2)
You can always put one line of code in the SourceExpr.
This works.
RIS Plus, LLC
MVP - Business Apps