>Its just this piece of code. I need to concatenate some field names into a string, so the actual code is :
>
> lTempFields=""
> FOR i=1 TO lnCampos
> IF ASCAN(TblFields, UPPER(This.iaData[i, 1]))>0
> zz=ALLTRIM(UPPER(This.iaData[i, 1]))+","
>
> lTempFields=lTempFields+zz
> ENDIF
> ENDFOR
>
>Tblfields has a =AFIELDS() of my table, so Im getting all the strings in ladata wich have a corresponding field in the table
- Have you declared all your variables as LOCAL?
- Have you tried the mdot prefix for your memory variables, to prevent possible conflict with a column name of an open table e.g. m.i, m.lnCampos etc.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up