Discussion:
Set resource to problem
(too old to reply)
damezumari
2010-05-23 09:47:46 UTC
Permalink
I use vfp9 sp2 and winxp.

In development environment I type 'set resource to maxpreview' in the
command window.

My intention is to preview a report in the development environment,
maximise the report and reposition the preview toolbar. I will then
include maxpreview.dbf in myproject and in the code SET RESOURCE TO
maxpreview before REPORT FORM.

The sad thing, however, is that when I issue 'set resource to
maxpreview' I get an error message saying 'Cannot open file ...
maxpreview.dbf'.

Do I create the table first? If yes, how?

Regards,

Jan
Lew
2010-06-03 14:05:48 UTC
Permalink
Post by damezumari
I use vfp9 sp2 and winxp.
In development environment I type 'set resource to maxpreview' in the
command window.
My intention is to preview a report in the development environment,
maximise the report and reposition the preview toolbar. I will then
include maxpreview.dbf in myproject and in the code SET RESOURCE TO
maxpreview before REPORT FORM.
The sad thing, however, is that when I issue  'set resource to
maxpreview' I get an error message saying 'Cannot open file ...
maxpreview.dbf'.
Do I create the table first? If yes, how?
Regards,
Jan
The statement set resource to <tablename> should create both a .dbf
and a .fpt file. If you omit one of them in your distribution, the fox
will not be able to open it.
kusni
2012-07-22 13:01:28 UTC
Permalink
damezumari wrote on 05/23/2010 05:47 ET
Post by damezumari
I use vfp9 sp2 and winxp
In development environment I type 'set resource to maxpreview' in th
command window
My intention is to preview a report in the development environment
maximise the report and reposition the preview toolbar. I will the
include maxpreview.dbf in myproject and in the code SET RESOURCE T
maxpreview before REPORT FORM
The sad thing, however, is that when I issue 'set resource t
maxpreview' I get an error message saying 'Cannot open file ..
maxpreview.dbf'
Do I create the table first? If yes, how
Regards
Ja
Hi Jan

Sure you can use your own resources dbf in your project, as I sometimes do th
same

1. Make sure the resources file status in your project is Included (the defaul
is Excluded
2. Before REPORT FORM command, check and do command as follow

IF !USED("myResource"
USE myResource IN
ENDI

SET RESOURCE TO "myResource

REPORT FORM ......

Hope this helps

Kind regards

Kusni

Continue reading on narkive:
Loading...