Results 1 to 4 of 4

Thread: Run time error 5025 when loading string

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Milford, NH
    Posts
    15

    Post

    Run-time error '5025'
    Buffer for return string is too small

    Opening a Word7 document and copy string to clipboard.
    Dim outfile as String
    or outfile as String * 5000

    wd.EditSelectAll
    outfile = wd.Selection$() 'error here


  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    dim as a single
    string can only hold so many characters

    ------------------
    DiGiTaIErRoR
    VB, QBasic, Iptscrae, HTML
    Quote: There are no stupid questions, just stupid people.

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    I think the limit for a string is 64K.

    ------------------
    Marty
    Why is it called lipstick if you can still move your lips?

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    64K is the limit for a Fixed Length String, as you are using. A Variable Length String can hold upto 2 Billion Characters.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width