>thisform.cbocity.rowsourcetype = 2
>thisform.cbocity.rowsource = "ficity"
>thisform.cbocity.value = ficity.city
>thisform.lblcity.visible = .t.
>thisform.cbocity.enabled = .t.
>thisform.cbocity.visible = .t.
>thisform.cbocity.setfocus()
>
>*** everything works fine the first time I access this combobox. I have a button containing a method called 'newsearch'. the first few lines of code in this method are supposed are:
>
>if used("ficity")
> use in ficity **** this is where I get error 1152
>endif
>
>
>I'm not sure what I'm doing wrong here.
>
AL,
Perhaps if you tried this it may hep; in the button's cpode try this;
THISFORM.cboCity.RowSource = ""
if used("ficity")
Use in FiCity
endif
The problem may be that you are trying to close an alias that teh cobobox has in use and so you are being disallowed access to close that file.