Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject Error? Is it a known bug?
Message
From
24/04/1998 18:11:12
 
 
To
23/04/1998 22:02:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00094559
Message ID:
00094800
Views:
24
>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?!
>>_<"

If you save a form with tables in the DE as a class, the class does not preserve the DE (.vcx forms have no DE). So when instanciating forms from vcxs, you have open the tables manually. You are being prompted for a table becuase there is no table in the form.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform