[futurebasic] Multiple Resource Problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Martin Fitzgibbons <rush@...>
Date: Sun, 02 May 1999 00:14:45 +1000
I have been using the following to swap between resource files

  oldres = FN CURRESFILE
  RFnum% = FN HOPENRESFILE(SYSTEM(_aplVol), 0, res$, _fsRdPerm)
  LONG IF RFnum% <> -1
    CALL USERESFILE(RFnum%)
    lh& = FN GETRESOURCE(_"PICT",chelp)
    LONG IF lh&
    .....
      CALL RELEASERESOURCE(lh&)
    END IF
    CALL USERESFILE(oldres)
  END IF


In one part of the program after doing a print routine the program
starts putting data resources as opposed to program resources on the
screen. Is there a call I can make to return to the BUILT resource when
the program looses the plot?

Martin