home *** CD-ROM | disk | FTP | other *** search
- --This sinple UPL program is used to convert from Rev 2.0 color scheme
- --(bright colorss 1-7 & dim 9-15) to the post Rev 2.0 scheme (dim colors
- --1-7 & bright colors 9-15)
- --
- --Simply run this program and all entites will have their colors updated
- --If you accidentally run the program on an already converted part, simply
- --run the program agasin to change the colors back.
-
- Proc Main
-
- Integer NMib, MibData(8), Error, I
-
- SysVarI(5, NMib)
- loop I = 1 to NMib
- ReadEnt(I, MibData(1))
- if MibData(1) > 0 then
- if MibData(1) < 20 or MibData(1) > 1000 and MibData(1) < 1020 then
- if MibData(8) > 8 then
- MibData(8) = MibData(8)-8
- WriteEnt(I, MibData(1))
- RpntEnt(I, 1, Error)
- else if MibData(8) < 8 then
- MibData(8) = MibData(8)+8
- WriteEnt(I, MibData(1))
- RpntEnt(I, 1, Error)
- endif
- endif
- endif
- end loop
-
- end proc