Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject Error? Is it a known bug?
Message
 
 
To
23/04/1998 22:02:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00094559
Message ID:
00094610
Views:
23
Justok,

I imagine it's an issue of object instantiation order, in one case teh cbo exists before the grid, and in the other case it does not. If you are basing one control on another you are better off delaying the setting of those properties until the container Init, because by that time both contained objects are guaranteed to exist.

>After create a form will a combox with to show the field list,
>For Do Form Version, It work fine!
>
>But for CreateObject Version, it prompt to assign table on selection
>the working table. Why??
>
>2nd, If I open other forms and got another selection area,
>then open this form. The FIeld list do not change as my desire!!
>
>Even I code it will change table, the field do nothing!
>
>* ... successful to open table, even assign to
>* Grid Recordsource!
>
>with thisform
>  .cbofield.rowsourcetype = 0
>  .cbofield.rowsource = []
>  .cbofield.rowsourcetype = 8 && field
>  .cbofield.rowsource = alltrim(.cboTable.value)
>EndWith
>
>
>The above with cause coding do not work!!!!
>But Work in Do Form Version!!! Why?!?!?!?
>Any Suggestion or Precausion can I do?!
>>_<"
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform