R5 @IF and @SETFIELD
R5 @IF and @SETFIELD
(OP)
FIELD SalesVol := SalesVol ;
@If (SalesChoice = "Outer" | SalesChoice = "Single" ; @SetField (SalesVol ; SalesTotal) ;@SetField (SalesVol ; SalesTotal / SalesOuter)) ;
Ok I give up been playing with this for hours now and would love some help ..... PLEASE.....
All I want to do is put the vale of SalesTotal in SalesVol if its an outer and if not the value of SalesTotal/SalesOuter.
The above code says text expected and does not open the form and number expected if I put the SalesVol in "" !
Thanks
@If (SalesChoice = "Outer" | SalesChoice = "Single" ; @SetField (SalesVol ; SalesTotal) ;@SetField (SalesVol ; SalesTotal / SalesOuter)) ;
Ok I give up been playing with this for hours now and would love some help ..... PLEASE.....
All I want to do is put the vale of SalesTotal in SalesVol if its an outer and if not the value of SalesTotal/SalesOuter.
The above code says text expected and does not open the form and number expected if I put the SalesVol in "" !
Thanks
RE: R5 @IF and @SETFIELD
One thing I've just spotted in the code is that you might need to put SalesTotal\Sales in brackets and reverse the slash to make it (SalesTotal\Sales).
Hope this helps
RE: R5 @IF and @SETFIELD
FIELD SalesVol := @If (SalesChoice = "Outer" | SalesChoice = "Single" ; SalesTotal ;SalesTotal / SalesOuter) ;
Pascal.