FORMAT returns a text value, and you can't set an integer value directly to a text value. You will need to do EVALUATE(MyInt,MyText).
As far as using FORMAT to get rid of the M, I'd like to see how that works too . Come on Mark, it's been at least more than 6 minutes! What's keeping you so long? :-k
Comments
2. Or calculate 4M from 1st of january, put a filter on the date table with filter on months and count the records.
1st option is the easiest but won't work with all languages, 2nd option is more work but better I think.
IntLength := Format(PeriodLength,-'M');
Error message: Integer := Text
IntLength, datatype Integer
PeriodLength, datatype Dateformula
Makes no difference leaving -M outside brackets
As far as using FORMAT to get rid of the M, I'd like to see how that works too . Come on Mark, it's been at least more than 6 minutes! What's keeping you so long? :-k
RIS Plus, LLC
MVP - Business Apps
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Gone home, picked up my daughter at my in-laws, eating, stuff like that