PDA

Click to See Complete Forum and Search --> : Run time error 5025 when loading string


JohnL55
Jan 24th, 2000, 08:44 PM
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

DiGiTaIErRoR
Jan 24th, 2000, 09:50 PM
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.

MartinLiss
Jan 24th, 2000, 10:07 PM
I think the limit for a string is 64K.

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

Aaron Young
Jan 24th, 2000, 10:34 PM
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
aarony@redwingsoftware.com
ajyoung@pressenter.com