Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1152 - don't understand
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097177
Message ID:
00097818
Views:
20
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform