Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - changing the controls source property
Message
 
To
19/10/1997 12:34:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054836
Message ID:
00055387
Views:
30
>>>>Hi guys,
>>>> sorry to interupt, but right now I'm having similiar problem. I've create a container class that I need to show on two different pages of pgframe and populate them from different tables. So in Init event of container I coded code for changing controlsource for controls. There is one combo and four edtboxes in that container. But it seems that it ignores what I wrote, bc on first page combo is populated ok, but edtboxes not, and on second nor combo, nor edtboxes.
>>>>TIA
>>>> Dezider
>>>
>>>Do you refresh your combos using the Requery method?
>>
>>Nope. Going to try.
>>thanx
>> Dezider
>
>Always use Requery for combos and lists when you refresh them, change the control source, source type, etc.
>
>Vlad

Too bad. It dodn't help. I just don't understand what mistakes an I going!
Should I move this code to the Load event of Container?
But one thing is mystery for me.
When I debugged it I put in my debuf window this:
_screen.activeform.activecontrol.controlsource
and the resule what
"table1.field"
and then
_screen.activeform.activecontrol.controlsource
gave result
"table.field"
It didn't evaluate dthe value from the table but took controlssourceas a string.... Did you see it?
Dezider
There were three worst disasters in the history of human
race in 20-th century:
1, Hiroshima 44
2, Tchernobyl 86
3, Windows 95
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform