PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Reverse or limit VER *  (Read 581 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Reverse or limit VER *
« on: August 10, 2022, 05:29:54 PM »
For a while we've been able to VER 2 for instance to get the date/Time/Version number of a program.  This has stopped working recently.  Since the system program count is set a 50, VER * is pretty much useless as it only shows the last 10 lines or so.  Is there a way to limit or reverse the list?

jasonc

  • Silver Member
  • ***
  • Posts: 22
    • View Profile
Re: Reverse or limit VER *
« Reply #1 on: August 10, 2022, 06:54:51 PM »
I modified one line of code in '*cmd/system/ver' a long time ago to account for this.

Orig:
if all_ver then goto NEXT_VER

I went back and forth between two options:

if all_ver then if mod(prg_ver,20)=0 then escape end_if ; goto NEXT_VER
or
if all_ver and prg_ver<20 goto NEXT_VER

Just depends on if you want it to only show 20 versions or if you want it to escape after printing 20 versions.  Having it escape is a nuisance, but allows you to either RUN to see more or END.