Menu

#10 SET RESERVED autoscroll

closed
None
5
2007-08-21
2006-10-20
Anonymous
No

From : Lucio Chiappetti <lucio@lambrate.inaf.it>
As suggested by Mark Hrssling on THELIST I add this here

He said "I'd probably implement this as:
SET RESERVED [AUTOscroll] location [colour] [text|OFF]"

I have a vague recall that old XEDIT had a "SET MASK"
command by which one could fill a blank line with a
defined pattern.

I am trying to use SET RESERVED to emulate that, or at
least to achieve what follows.

I have a very wide text file (3000 records of 291
characters each), which is a sort of fixed format ASCII
dump of a database which I should supply
for ingestion into another system (please do not waste
your time saying there are other better interfaces, I
can't change this).

What I want to have is a one-line header with the
column names which always remains on the screen while I
scroll up and down. And it shall also remain on the
screen while I scroll LEFT and RIGHT.
Like SET SCALE does.

Or like "lock frames" in Excel.

I need to see the header while I inspect the file for
possible alignment or formatting errors.

In fact I wrote a 3-line macro which contains

'set reserved M+1 red Xseq._Xcatname..........'
'set scale on M+2'
'set prefix off'

In the example the text string on set reserved is
truncated with respect to what it should be (a 291
character string).

Now I have two problems :

- one is that THE crashes with THE terminated with
signal: 11 (this is THE 3.1 on Suse Linux 9.2)
when I execute the above full macro

it works if the string length is less than 260
characters.

- the second is that while the reserved line remains
on the screen together with the scale scrolling up and
down ...
... when I scroll left and right the reserved line
does not scroll (while the scale line does)

Discussion

  • Mark Hessling

    Mark Hessling - 2006-10-20
    • assigned_to: nobody --> rexx
     
  • Mark Hessling

    Mark Hessling - 2006-10-20

    Logged In: YES
    user_id=86185

    To implement a solution that solves the specifed
    requirement, normal reserved line processing will not only
    have to different regarding the scrolling option, but if the
    prefix area is displayed, then the portion of the reserved
    line that would normally be displayed in the prefix area
    cannot be displayed there.

     
  • Mark Hessling

    Mark Hessling - 2006-10-25

    Logged In: YES
    user_id=86185

    Implemented.
    EXTRACT RESERVED changed to return AUTOSCROLL if set.
    Will be available in 3.3.

     
  • Mark Hessling

    Mark Hessling - 2006-10-25
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 300 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.