here I need to single click on weblistbox and achieve all the values of columns with respect to row and want to fill textfields. But xojo.core.baddataaexception occures.
The code is
PatientID=DataList.cell(row,0).val
txtFName.text=DataList.cell(row,1).ToText
txtLName.text=DataList.cell(row,2).ToText
txtAddressOne.text=DataList.cell(row,3).ToText
txtAddressTwo.text=DataList.cell(row,4).ToText
txtStreet.text=DataList.cell(row,5).ToText
txtState.text=DataList.cell(row,6).ToText
txtZipcode.text=DataList.cell(row,7).ToText
txtPhoneone.text=DataList.cell(row,8).ToText
txtPhonetwo.text=DataList.cell(row,9).ToText
txtEmail.text=DataList.cell(row,10).ToText
Error given at line 2
Please any one tell me that how to do this ??