Unique problems | topic started 3/11/2002; 9:14:57 AM last post 3/12/2002; 1:31:31 AM |
|
|
Michael Gage - Re: Unique problems 3/12/2002; 1:31:31 AM (reads: 1116, responses: 0) |
Hi David, As Arnie says, your particular project hasn't been done extensively. (In particular we'd like to implement a clean high level function, above the PGproblem interpreter, which selects which problem to render. ) However, you can probably do what you are suggesting. The model to follow is in PG_CAPAmacros.pl.
sub CAPA_import {
The subroutine includePGtext is in lib/PGtranslator.pm if you need to understand how to use it. I would advise against modifying includePGtext since I'm pretty sure it is used elsewhere and in changing it you risk breaking existing code. I would suggest writing a copy of the CAPA_import macro above in a macro file which you can include in your problems. This subroutine has been used so far only for CAPA problems (which have an import file command). I think the basic idea will work for what you have in mind, but it may require some tweaking. Let me know how it works out. --Mike |