Hi Denis.
>
>if not empty(SFReports.QuickFlds)
> restore from memo SFReports.QuickFlds additive
> if not empty(laFieldDef[1, 1])
> for lnI = 1 to alen(laFieldDef, 1)
> loField = .oFieldsCollection.AddItem(laFieldDef[lnI, 1])
> . . .
> . . .
> . . .
> next lnI
> endif not empty(laFieldDef[1, 1])
>endif not empty(SFReports.QuickFlds)
>
>
>should'nt there be an ELSE part in there to create the array and then put in in QuickFlds?
If QUICKFLDS is empty, there's nothing to so, since no fields exist. The RESTORE FROM command creates the laFieldDef array, since it was stored with a SAVE TO command. If the first element of that array is empty, there aren't any valid fields defined, so again, there's nothing to do.
Doug