Hi Fred,
you may improve your code using the 4th parameter of alines. ::)
ALINES(aTables,this.ChildList,.F.,',')
Agnes
>>Fred,
>>I am doing this. I have three table names in childlist property(cnchron,sub_ref,actions)
>>All the three times in the loop the first table(cnchron) name is appearing it is not going to the second and the third.
>>
>>ALINES(aTables,STRTRAN(this.ChildList,",",CHR(13)+CHR(10)))
>>FOR nTable=1 TO ALEN(aTables,1)
>> * whatever you need to do with aTables[nTable]
>> =messagebox("Table "+aTables
[nTable])
>>ENDFOR
>>
>>Thank you very much.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]