[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Grouping Data



[Tony DeLia describes a COBOL-like enhancement that would be nice.]

>In SQR I would have to initialize as follows...
>
>let $NAname   = ' '
>let $NAaddr   = ' '
>let $NAcity   = ' '
>let $NAstate  = ' '
>let $NAzip    = ' '

Why not extend the MOVE command thus:
        Move '' to $NAname, $NAaddr, $NAcity, $NAstate, $NAzip

Yes, you still have to write out each variable, but I find it very
readable.

If you wanted to fill a set of variables with a character or
pattern, a Write statement could be useful:
    Fill ' ' Into $NAname:15, $NAaddr:30, $NAcity:30, $NAstate:2, $NAzip:9

    Let $pattern = 'XO'
    Fill $pattern Into $hugs_and_kisses:6
    ! $pattern is now 'XOXOXO'


While I'm at it, I'd like a pony. ;)

Adam Dray