Hi All,
i am developing an utility that takes budget filter as one of the inputs. Its not mandatory for user to enter it. Thats why i want to take out minimum and maximum of the range entered only if Budget Filter is not empty. For this I have written this code
Budget Filter is a table filter
if "Budget Filter" <> '' then begin
StartBudget := GETRANGEMIN( "Budget Filter" );
EndBudget := GETRANGEMIN( "Budget Filter" );
end;
But if if i enter something for the Budget Filter, its comparing it with blank and skipping the code written inside the if statement.
F1 F1 F1 (Help me Please) .... waiting for replies :roll:
Jyotsna Sonawane
______Doubt is the father of Invension_______
0
Comments
ex.
Variabel: GlBudgetFilter Text 80
GLBudgetFilter := "G/L Account".GETFILTER("Budget Filter");
IF GlBudgetFilter <> '' THEN BEGIN
Startbudget := GETRANGEMIN(GlBudgetFilter);
Endbudget := GETRANGEMAX(GlBudgetFilter);
END;
But for the code that is given i am getting an error for GLBudgetFilter is not part of the table. Its an external variable. And GETRANGEMIN and GETRANGEMAX are functions related to record variables.
Anyways, i tried it using one variable
BudgetFilter text 80
// consider "Budget Filter" of Rec
BudgetFilter := GetFilter( "Budget Filter" );
if BudgetFilter <> '' then begin
StartBudget := GETRANGEMIN( "Budget Filter" );
EndBudget := GETRANGEMAX( "Budget Filter" );
end;
still not working....... Please reply back
my mistake ---- for the previous mail :oops:
i got it using your solution
THANKS :P