In my app when I produce a report I copy the report files to a working folder and rename them 'myreport' etc
I would like to see that this has happened correctly by changing the myreport.frx and frt files to the current date/time.
I have tried the 'touch' procedure in the FAQ ( which I recognise from Linux playing years ago) but I am unable to get it working.
I call the procedure with
If File('myreport.frx')
touch('myreport.frx',DATE())
touch('myreport.frt',DATE())
endif
The FAQ states -
This code Requires the "Struct" class (available here: ) to be available to handle the API structures.
I have copied the given code into a prg ApiStructure.prg as suggested and have added
SET PROCEDURE TO ApiStructure.prg
before the OFS = CREATEOBJECT('OFSTRUCT') line in touch.prg
but it doesn't do the job - the file stamp remains the same.
Is there an easier way?
Can anyone help me here?
Coldan
I would like to see that this has happened correctly by changing the myreport.frx and frt files to the current date/time.
I have tried the 'touch' procedure in the FAQ ( which I recognise from Linux playing years ago) but I am unable to get it working.
I call the procedure with
If File('myreport.frx')
touch('myreport.frx',DATE())
touch('myreport.frt',DATE())
endif
The FAQ states -
This code Requires the "Struct" class (available here: ) to be available to handle the API structures.
I have copied the given code into a prg ApiStructure.prg as suggested and have added
SET PROCEDURE TO ApiStructure.prg
before the OFS = CREATEOBJECT('OFSTRUCT') line in touch.prg
but it doesn't do the job - the file stamp remains the same.
Is there an easier way?
Can anyone help me here?
Coldan