Options

How to get the maximum value from a variable?

thankeshthankesh Member Posts: 170
Hi all,

My belated New year wishes :roll:

In report No. 25 (Account Schedule), while running the report, the date filter option is there in request form. How can I extract the maximum value of that datefilter option? This is the variable type of text. Does any one knows, How to get the maximum value from a variable which is not a part of a record variable? Thanks in advance =D>
With warm regards,

Thankesh

***Learn to lead***

Comments

  • Options
    AndwianAndwian Member Posts: 627
    "Acc. Schedule Line".SETFILTER("Date Filter",DateFilter);
    EndDate := "Acc. Schedule Line".GETRANGEMAX("Date Filter");
    
    Regards,
    Andwian
  • Options
    thankeshthankesh Member Posts: 170
    Andwian wrote:
    "Acc. Schedule Line".SETFILTER("Date Filter",DateFilter);
    EndDate := "Acc. Schedule Line".GETRANGEMAX("Date Filter");
    
    Hi Andwian,

    Thank you so much. =D> I found out that The EndDate will give the maximum value of the DateFilter variable.
    With warm regards,

    Thankesh

    ***Learn to lead***
  • Options
    AndwianAndwian Member Posts: 627
    Anytime! :wink:
    Regards,
    Andwian
Sign In or Register to comment.