>>Hi,
>>
>>In my combobox I face the problem that properties List, ListCount, ListIndex, ListId are not availble ("Expression could not be evaluated") and therefor a commandy
>>
>>For liLstcnt = 1 To This.ListCount
>>
>>results in error "Command is not recognized"
>>
>>I believe this is caused since I do a requery too early, combox is not yet fully instantiated.
>>Any idea how to check that properties are existing?
>
>PEMStatus() lets you check whether a property exists.
>
>My suggestion, though, is don't do call Requery both the combo is fully instantiated. What are you trying to do?
>
>Tamar
Hi,
1) Pemstatus(This,'Listcount',5) returns 5
2) I am trying to built a combobox with a dynamical rowsource:
Thisform.cboCLUBS.RowSource = 'Select pcode from pstcode where address = m.lcCbo2 order by 1 into cursor curPostcode2 NOFILTER'
this is called from the form.setcombo, which is called from the cboCLUBS.gotFocus
Have meanwhile removed the requery from the init, no error "Command is not recognized" anymore, also no cursor in my combo, although in datasession I find the cursor available.
Suppose I will have to rebuilt / review all my coding.
Regards,
Koen