>Hello. I'm filling a string with field names using this code:
> lnCampos=54
> lTempFields=""
> FOR i=1 TO lnCampos
> lTempFields=lTempFields+alltrim(UPPER(This.iaData[i, 1]))+","
> ENDFOR
>
>When lTempFields reach about 500 chars the program crashes with a "String too long" error. IIRC you can create huge memory fields in VFP.
>What could be the problem?
>
>Thanks in advance
Are you trying to use this string in a listbox? We did have this error long time ago when we tried to assign long strings in the listbox values.
If it's not broken, fix it until it is.
My Blog