Wiki Home

String Length


Namespace: WIN_COM_API
The following information have been provided by Marc Voillat on the dFPUG forum: I've tested string functions in VFP 8 SP 1 whether they can deal with strings longer than 2^24-2^5 Bytes (16777184) bytes which is the official maximum length/

-- Rick Strahl wrote an interesting article about string length in VFP:
http://www.west-wind.com/wconnect/weblog/ShowEntry.blog?id=882
He says you can have much longer strings than 16MB as long as you don't assign them to another VFP memvar.

Work correctly with strings >16MB:

ALLTRIM()
CHRTRAN()
CPCONVERT()
FILETOSTR()
LEFT()
LEN()
LOWER()
LTRIM()
MAX()
MIN()
OCCURS()
PROPER()
RIGHT()
RTRIM()
STRTOFILE()
SUBSTR()
TRANSFORM()
TRIM()
UPPER()
var = var + SomeString


Do not work:

+ Operator
- Operator
PADC()
PADL()
PADR()
REPLICATE()
STRTRAN()
SPACE()
STUFF()
Contributors: MarcVoillat, Christof Wollenhaupt
( Topic last updated: 2012.04.23 08:46:41 AM )