A Bug warning
Richard Kreiss
rkreiss at gccconsulting.net
Thu Jun 15 19:30:56 PDT 2017
I found the following bug, which has been reported to FPSUPPORT.
When passing a date field using a -r variable, and then doing a date function using the received @p_ value, the month is always the current month.
Example:
Declare fdate(10,mdyy/)
Fdate="08/15/2017"
Doit="\fp\rreport foobar -f fooReport -v sel_foo -rx Fdate -a -u"
System doit
Debugger on in sel_foo
Declare StartDate(10,mdyy/),EndDate(10,mdyy/)
StartDate=BOM(@px);EndDate=EOM(@px)
When checking the value of @px, it will show as 08/15/2017. However, checking the value of StartDate, it will be 06/01/2017 and enddate will be 06/30/2017.
To get around this problem I added the following px(10,mdyy/)=@px (px has the correct dates).
Then: StartDate=BOM(px);EndDate=EOM(px) (Dates are correct)
Richard Kreiss
GCC Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 13774 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170616/fa35e6e0/attachment.bin>
More information about the Filepro-list
mailing list