I have some troubles with the following piece of code:
MyRecord.RESET;
MyRecord.SETRANGE(DetailEvalTemp.Year,TempYear);
MESSSAGE('The selected year is = %1', TempYear);
MESSSAGE('So the year is = %1', DetailEvalTemp.Year);
MyRecord.RESET;
MyRecord.SETRANGE(DetailEvalTemp.Year,TempYear);
IF MyRecord.FINDFIRST THEN;
MESSSAGE('The selected year is = %1', TempYear);
MESSSAGE('So the year is = %1', DetailEvalTemp.Year);
It really makes no difference, SETRANGE or SETFILTER both work properly as long as you know how to set the filterstring, there is no technical reason to use one over the other.
As it so happens, I like SETRANGE over SETFILTER too, but this 'preference' you talk about is purely our own personal preference.
It really makes no difference, SETRANGE or SETFILTER both work properly as long as you know how to set the filterstring, there is no technical reason to use one over the other.
As it so happens, I like SETRANGE over SETFILTER too, but this 'preference' you talk about is purely our own personal preference.
Poppins and me didnt use SETFILTER word in our posts at all..
How did you think of that? :-k
The preference I am talking about is
MyRecord.SETRANGE(Year,TempYear);
MyRecord.SETRANGE(MyRecord.Year,TempYear);
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
and thank you, now it applies...
It is always prefered to use
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
As it so happens, I like SETRANGE over SETFILTER too, but this 'preference' you talk about is purely our own personal preference.
RIS Plus, LLC
Poppins and me didnt use SETFILTER word in our posts at all..
How did you think of that? :-k
The preference I am talking about is
MyRecord.SETRANGE(Year,TempYear);
MyRecord.SETRANGE(MyRecord.Year,TempYear);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Although I also don't like the repetition, they both work exactly the same.
RIS Plus, LLC
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
RIS Plus, LLC
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
RIS Plus, LLC