[futurebasic] Re: STR #

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1997 : Group Archive : Group : All Groups

From: MAWRPh@...
Date: Thu, 13 Nov 1997 13:18:44 -0500 (EST)
In a message dated 11/12/97 5:09:54 PM, tjsmith@... wrote:

>Hey guys, this resource stuff is neat...can't believe I have never used
>it even thought I have been using Andy's wonder ever since it first came
>out as ZBasic.  I have another question though.

A few months back there was quite a bit of discussion about writing to your
applications resource fork, should you or shouldn't you. The bottom line
seemed to be that you should not do this though PG does this quite
extensively. Just something to think about as you start to use resources.

>In the PG manual (p197), Staz indicates that you should force an update
>on STR # resources when opening a printer.
>
>The header for this paragraph is CALL UPDATERESFILE.
>
>1.  What is the code to do the update?

I think thats all you need to do, just be sure that the resource you want to
save is the current resource

CALL USERESFILE (resFileID%)
CALL UPDATERESFILE

>2. By the time the printer activities are started, I have deleted all
>elements in the STR # resource except the first one defining the column
>sizes, therefore, do I still need to do the update?

I don't know but I don't think it would hurt. Better to be safe.

Mark