KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q47765: CopyBox Function Doesn’t Work Across Files

Article: Q47765
Product(s): See article
Version(s): 1.00   | 1.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | S_C S_Pascal H_Fortran H_MASM | mspl13_basic
Last Modified: 26-SEP-1989

CopyBox is a C-extension function for the Microsoft editor that is
designed to copy square regions of text from one location to another,
including to another file.

This function works properly when copying to the same file, but fails
when copying to another file. The function appears to work
successfully, but the copied text does not appear in the target file.
This lack of functionality has been corrected in Version 1.02 of the
editor.

You can work around this problem by using the GetLine and PutLine
functions. A line can be read from the source file, trimmed to get the
proper portion of the line, and then written to the target file. This
procedure must be followed for each line of the box to copy.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.