Try to compile program named CAPTURE (Arev32)
At 07 NOV 2009 06:09:34PM Joe Wesner wrote:
I have a subroutine called CAPTURE. I needed to add another printer to the list. Once I added to it I was not able to compile. It comes back with error in line 0 and no description. I replaced the program with test=1 and tried to recompile but still nothing. I copied same program to CAPTURE1 and it compiled no problem. My problem is that I have all the programs referencing CAPTURE. Can someone try this and see if you get the same thing. Try to compile in AREV32 with the program name CAPTURE.
At 08 NOV 2009 09:28AM Dave Harmacek wrote:
Try changing the name to CAPTURE_JOE and compile it, then SETPROGRAM.
Then, copy that VOC CAPTURE_JOE entry (O) to CAPTURE.
There is a system routine named CAPTURE.
Dave
At 09 NOV 2009 08:26AM Bob Orsini wrote:
Joe, I am not sure you really want to play with system programs. You may be better off renaming your function to something else and change the call routines.
At 10 NOV 2009 09:09AM Bryan Shumsky wrote:
While of course I agree with Bob (of course!) that generally it's a bad idea to override/ignore system routines, I believe - with the proper caveat - that in this case it's OK.
The OI "CAPTURE" routine is almost certainly going to be used by those working in CTO rather than AREV32 (it's an implementation of the 'traditional multivalue' UniVerse environments "capture" command, designed to enable and disable recording of PRINT output).
So (here's the caveat), as long as you're satisfied that your users will NEVER need this functionality, and/or will never work in the CTO environment, I suppose it's ok to create your own VOC pointer named CAPTURE and override the default system functionality. Just this once
![]()
Regards,
- Bryan Shumsky
Revelation Software