>I have a multicolumn list: lList.
>lList.LIST(2,5) gives me the 5th column of the 2nd item listed in lList. Is there a way to name the columns so that it can be referred to by name, rather than by the column number? Something like: lList.List(2,custid).
>Thank you all!!!
Inge,
If you base the list on a rowsourcetype like alias, fields, SQL (my preference) then it'd be quite easy and yu could access to columns that are not part of list too. ie:
lcSQL = 'select last_name-(', '+first_name) as name,emp_id as mykey,* '+;
' from employee into cursor crsMyList'
with this
.RowSourceType = 3
.Rowsource = lcSQL
.Columncount = 2
.BoundColumn = 2
.BoundTo = .t.
.columnWidths = '100,0'
endwith
Now anytime you could use directly alias.fieldname. Say crsMyList.emp_id or crsMyList.address.
Cetin