
      This is my first attempt at publishing a UDF, so it may need some
      polishing.  I created this routine to alleviate the boredom of
      having only three options for window and popup frames, i. e.,
      none, single, and double.  It got tiresome adding that long border
      definition string manually every time I wanted something different,
      and I always have to look up the darn corner codes, and hope I put
      them in the string in the correct order.

      The last two entries in the array duplicate the DOUBLE and default
      (single) line window and popup frames.  I did this for consistancy,
      but you may save a little memory by commenting them out and changing
      the number of rows in the array declaration from 13 to 11.

      Of course, you can do the same for any of the other ones you don't
      want to be bothered with.

      I couldn't get the function to work within the window or popup
      definition command, so I used a secondary variable for macro
      substitution.  If anyone has any suggestions on how to improve this,
      please leave a message to "QuesTech".  I realize that I could have
      just stored the border definition strings as regular memory
      variables and then used macro substitution that way, but I really
      wanted to use a UDF for this.

      Released to the Public Domain on 12 MAR 92.


                                             Carey L. Chilcote
                                             QuesTech


